diff --git a/modules/opencase_entities/src/Entity/OCActor.php b/modules/opencase_entities/src/Entity/OCActor.php index 87c5fcb..e8cf721 100644 --- a/modules/opencase_entities/src/Entity/OCActor.php +++ b/modules/opencase_entities/src/Entity/OCActor.php @@ -235,12 +235,7 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface ->setRevisionable(TRUE) ->setSetting('target_type', 'user') ->setSetting('handler', 'default') - ->setTranslatable(TRUE) - ->setDisplayOptions('view', [ - 'label' => 'inline', - 'type' => 'author', - 'weight' => -10, - ]); + ->setTranslatable(TRUE); // When configuring a person type, you will need to choose whether to have full name or first and last name fields displayed. $fields['full_name'] = BaseFieldDefinition::create('string') @@ -248,7 +243,7 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface ->setLabel(t('Name')) ->setRevisionable(TRUE) ->setSettings([ - 'max_length' => 50, + 'max_length' => 100, 'text_processing' => 0, ]) ->setDisplayConfigurable("form", true) @@ -274,8 +269,7 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface ->setDisplayOptions('form', [ 'type' => 'string_textfield', 'weight' => -9, - ]) - ->setRequired(TRUE); + ]); $fields['middle_names'] = BaseFieldDefinition::create('string') ->setLabel(t('Middle Names')) @@ -308,8 +302,7 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface ->setDisplayOptions('form', [ 'type' => 'string_textfield', 'weight' => -7, - ]) - ->setRequired(TRUE); + ]); // Contact details. $fields['email'] = BaseFieldDefinition::create('string')