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,
|
'max_length' => 20,
|
||||||
'text_processing' => 0,
|
'text_processing' => 0,
|
||||||
])
|
])
|
||||||
|
->setDisplayConfigurable("form", true)
|
||||||
|
->setDisplayConfigurable("view", true)
|
||||||
->setDefaultValue('')
|
->setDefaultValue('')
|
||||||
->setDisplayOptions('form', [
|
->setDisplayOptions('form', [
|
||||||
'type' => 'string_textfield',
|
'type' => 'string_textfield',
|
||||||
@ -261,6 +263,8 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface
|
|||||||
'max_length' => 50,
|
'max_length' => 50,
|
||||||
'text_processing' => 0,
|
'text_processing' => 0,
|
||||||
])
|
])
|
||||||
|
->setDisplayConfigurable("form", true)
|
||||||
|
->setDisplayConfigurable("view", true)
|
||||||
->setDefaultValue('')
|
->setDefaultValue('')
|
||||||
->setDisplayOptions('form', [
|
->setDisplayOptions('form', [
|
||||||
'type' => 'string_textfield',
|
'type' => 'string_textfield',
|
||||||
@ -272,6 +276,8 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface
|
|||||||
->setLabel(t('Last Name'))
|
->setLabel(t('Last Name'))
|
||||||
->setDescription(t("The person's last name"))
|
->setDescription(t("The person's last name"))
|
||||||
->setRevisionable(TRUE)
|
->setRevisionable(TRUE)
|
||||||
|
->setDisplayConfigurable("form", true)
|
||||||
|
->setDisplayConfigurable("view", true)
|
||||||
->setSettings([
|
->setSettings([
|
||||||
'max_length' => 20,
|
'max_length' => 20,
|
||||||
'text_processing' => 0,
|
'text_processing' => 0,
|
||||||
|
Reference in New Issue
Block a user