diff --git a/modules/opencase_cases/src/Entity/OCCase.php b/modules/opencase_cases/src/Entity/OCCase.php index 2fb2a83..9e72375 100644 --- a/modules/opencase_cases/src/Entity/OCCase.php +++ b/modules/opencase_cases/src/Entity/OCCase.php @@ -217,6 +217,8 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface { ->setSetting('target_type', 'user') ->setSetting('handler', 'default') ->setTranslatable(TRUE) + ->setDisplayConfigurable('form', true) + ->setDisplayConfigurable('view', true) ->setDisplayOptions('view', [ 'label' => 'above', 'type' => 'author', @@ -250,6 +252,8 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface { ->setSetting('description_field', 'true') ->setSetting('uri_scheme', 'private') ->setCardinality(-1) + ->setDisplayConfigurable('form', true) + ->setDisplayConfigurable('view', true) ->setDisplayOptions('form', [ 'type' => 'file_generic', 'weight' => -1, diff --git a/modules/opencase_cases/templates/oc-case-content-add-list.html.twig b/modules/opencase_cases/templates/oc-case-content-add-list.html.twig index 9a3fa9b..bfd273a 100644 --- a/modules/opencase_cases/templates/oc-case-content-add-list.html.twig +++ b/modules/opencase_cases/templates/oc-case-content-add-list.html.twig @@ -9,15 +9,15 @@ * - link: A link to add a content entity of this type. * - description: A description of this content entity types/bundle. * - * @see template_preprocess_oc_case_content_add_list() + * @see template_preprocess_oc_activity_content_add_list() * * @ingroup themeable */ #} {% spaceless %}