From 0399c8364683e9caa85a904ba4c602c13befc1cf Mon Sep 17 00:00:00 2001 From: naomi Date: Fri, 5 Feb 2021 13:47:52 +0000 Subject: [PATCH] made name fields configurable for form and view --- modules/opencase_entities/src/Entity/OCActor.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/opencase_entities/src/Entity/OCActor.php b/modules/opencase_entities/src/Entity/OCActor.php index 2ad63a3..961d522 100644 --- a/modules/opencase_entities/src/Entity/OCActor.php +++ b/modules/opencase_entities/src/Entity/OCActor.php @@ -246,6 +246,8 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface 'max_length' => 20, 'text_processing' => 0, ]) + ->setDisplayConfigurable("form", true) + ->setDisplayConfigurable("view", true) ->setDefaultValue('') ->setDisplayOptions('form', [ 'type' => 'string_textfield', @@ -261,6 +263,8 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface 'max_length' => 50, 'text_processing' => 0, ]) + ->setDisplayConfigurable("form", true) + ->setDisplayConfigurable("view", true) ->setDefaultValue('') ->setDisplayOptions('form', [ 'type' => 'string_textfield', @@ -272,6 +276,8 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface ->setLabel(t('Last Name')) ->setDescription(t("The person's last name")) ->setRevisionable(TRUE) + ->setDisplayConfigurable("form", true) + ->setDisplayConfigurable("view", true) ->setSettings([ 'max_length' => 20, 'text_processing' => 0,