Removed involved parties from default case view mode
They will be handled by block code because they need to link to the persons not the hats
This commit is contained in:
@ -186,11 +186,6 @@ class CaseEntity extends ContentEntityBase implements CaseEntityInterface {
|
|||||||
'text_processing' => 0,
|
'text_processing' => 0,
|
||||||
])
|
])
|
||||||
->setDefaultValue('')
|
->setDefaultValue('')
|
||||||
->setDisplayOptions('view', [
|
|
||||||
'label' => 'hidden',
|
|
||||||
'type' => 'string',
|
|
||||||
'weight' => -4,
|
|
||||||
])
|
|
||||||
->setDisplayOptions('form', [
|
->setDisplayOptions('form', [
|
||||||
'type' => 'string_textfield',
|
'type' => 'string_textfield',
|
||||||
'weight' => -4,
|
'weight' => -4,
|
||||||
@ -205,11 +200,6 @@ class CaseEntity extends ContentEntityBase implements CaseEntityInterface {
|
|||||||
->setSetting('handler', 'default')
|
->setSetting('handler', 'default')
|
||||||
->setTranslatable(TRUE)
|
->setTranslatable(TRUE)
|
||||||
->setCardinality(-1)
|
->setCardinality(-1)
|
||||||
->setDisplayOptions('view', [
|
|
||||||
'label' => 'above',
|
|
||||||
'type' => 'author',
|
|
||||||
'weight' => 0,
|
|
||||||
])
|
|
||||||
->setDisplayOptions('form', [
|
->setDisplayOptions('form', [
|
||||||
'type' => 'entity_reference_autocomplete',
|
'type' => 'entity_reference_autocomplete',
|
||||||
'weight' => 5,
|
'weight' => 5,
|
||||||
@ -233,7 +223,12 @@ class CaseEntity extends ContentEntityBase implements CaseEntityInterface {
|
|||||||
|
|
||||||
$fields['created'] = BaseFieldDefinition::create('created')
|
$fields['created'] = BaseFieldDefinition::create('created')
|
||||||
->setLabel(t('Created'))
|
->setLabel(t('Created'))
|
||||||
->setDescription(t('The time that the entity was created.'));
|
->setDescription(t('The time that the entity was created.'))
|
||||||
|
->setDisplayOptions('view', [
|
||||||
|
'label' => 'inline',
|
||||||
|
'type' => 'string',
|
||||||
|
'weight' => 0,
|
||||||
|
]);
|
||||||
|
|
||||||
$fields['changed'] = BaseFieldDefinition::create('changed')
|
$fields['changed'] = BaseFieldDefinition::create('changed')
|
||||||
->setLabel(t('Changed'))
|
->setLabel(t('Changed'))
|
||||||
|
Reference in New Issue
Block a user