From 8d13d4b5974966de47eca3a3cda0740d9e1bd9f4 Mon Sep 17 00:00:00 2001 From: Dave Reid Date: Mon, 14 Sep 2015 01:29:37 -0500 Subject: [PATCH] Set file entity type as viewable Accounting for upcoming core patch hhttps://www.drupal.org/node/2567919#comment-10326241 --- file_entity.module | 1 + 1 file changed, 1 insertion(+) diff --git a/file_entity.module b/file_entity.module index 3fc2c86..f79a812 100644 --- a/file_entity.module +++ b/file_entity.module @@ -639,6 +639,7 @@ function file_entity_entity_type_alter(&$entity_types) { ->set('entity_keys', $keys) ->set('bundle_entity_type', 'file_type') ->set('admin_permission', 'administer files') + ->set('viewable', TRUE) ->setClass('Drupal\file_entity\Entity\FileEntity') ->setHandlerClass('storage_schema', 'Drupal\file_entity\FileEntityStorageSchema') ->setFormClass('default', 'Drupal\file_entity\Form\FileEditForm')