made name fields configurable for form and view

This commit is contained in:
naomi 2021-02-05 13:47:52 +00:00
parent 2bc1abc7a7
commit 0399c83646

View File

@ -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,