Removed "Entered by" from actor view display

This commit is contained in:
naomi 2021-02-14 21:14:33 +00:00
parent 403965fe6f
commit 715f5f34c4

View File

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