Cosmetic changes to case entity fields
This commit is contained in:
parent
9d84451cb0
commit
7c66cbd791
@ -179,15 +179,15 @@ class CaseEntity extends ContentEntityBase implements CaseEntityInterface {
|
|||||||
->setTranslatable(TRUE);
|
->setTranslatable(TRUE);
|
||||||
|
|
||||||
$fields['name'] = BaseFieldDefinition::create('string')
|
$fields['name'] = BaseFieldDefinition::create('string')
|
||||||
->setLabel(t('Name'))
|
->setLabel(t('Title'))
|
||||||
->setDescription(t('The name of the Case entity entity.'))
|
->setDescription(t('A name for this case'))
|
||||||
->setSettings([
|
->setSettings([
|
||||||
'max_length' => 50,
|
'max_length' => 50,
|
||||||
'text_processing' => 0,
|
'text_processing' => 0,
|
||||||
])
|
])
|
||||||
->setDefaultValue('')
|
->setDefaultValue('')
|
||||||
->setDisplayOptions('view', [
|
->setDisplayOptions('view', [
|
||||||
'label' => 'above',
|
'label' => 'hidden',
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'weight' => -4,
|
'weight' => -4,
|
||||||
])
|
])
|
||||||
|
Reference in New Issue
Block a user