Removed author field and simplified case title field
This commit is contained in:
parent
690ec3b509
commit
8b07bbe63f
@ -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,
|
||||||
|
@ -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'))
|
||||||
|
Reference in New Issue
Block a user