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:
naomi 2018-04-14 18:19:43 +02:00
parent 72936b0da6
commit 5978546333
1 changed files with 6 additions and 11 deletions

View File

@ -186,11 +186,6 @@ class CaseEntity extends ContentEntityBase implements CaseEntityInterface {
'text_processing' => 0,
])
->setDefaultValue('')
->setDisplayOptions('view', [
'label' => 'hidden',
'type' => 'string',
'weight' => -4,
])
->setDisplayOptions('form', [
'type' => 'string_textfield',
'weight' => -4,
@ -205,11 +200,6 @@ class CaseEntity extends ContentEntityBase implements CaseEntityInterface {
->setSetting('handler', 'default')
->setTranslatable(TRUE)
->setCardinality(-1)
->setDisplayOptions('view', [
'label' => 'above',
'type' => 'author',
'weight' => 0,
])
->setDisplayOptions('form', [
'type' => 'entity_reference_autocomplete',
'weight' => 5,
@ -233,7 +223,12 @@ class CaseEntity extends ContentEntityBase implements CaseEntityInterface {
$fields['created'] = BaseFieldDefinition::create('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')
->setLabel(t('Changed'))