made name fields configurable for form and view
This commit is contained in:
parent
2bc1abc7a7
commit
0399c83646
@ -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,
|
||||
|
Reference in New Issue
Block a user