Removed author field and simplified case title field

This commit is contained in:
Naomi 2020-11-17 10:47:24 +00:00
parent 690ec3b509
commit 8b07bbe63f
2 changed files with 2 additions and 8 deletions

View File

@ -233,8 +233,7 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
'type' => 'author', 'type' => 'author',
]); ]);
$fields['name'] = BaseFieldDefinition::create('string') $fields['name'] = BaseFieldDefinition::create('string')
->setLabel(t('Case Title')) ->setLabel(t('Title'))
->setDescription(t('A short phrase summing up what this case is about.'))
->setRevisionable(TRUE) ->setRevisionable(TRUE)
->setSettings([ ->setSettings([
'max_length' => 50, 'max_length' => 50,

View File

@ -396,12 +396,7 @@ class OCOrganisation extends EditorialContentEntityBase implements OCOrganisatio
->setRevisionable(TRUE) ->setRevisionable(TRUE)
->setSetting('target_type', 'user') ->setSetting('target_type', 'user')
->setSetting('handler', 'default') ->setSetting('handler', 'default')
->setTranslatable(TRUE) ->setTranslatable(TRUE);
->setDisplayOptions('view', [
'label' => 'inline',
'type' => 'author',
'weight' => 80,
]);
$fields['name'] = BaseFieldDefinition::create('string') $fields['name'] = BaseFieldDefinition::create('string')
->setLabel(t('Name')) ->setLabel(t('Name'))