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)
->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')