case base field descriptions
This commit is contained in:
parent
83264f93b2
commit
e2f77bf301
@ -231,8 +231,8 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
|
|||||||
'weight' => -4,
|
'weight' => -4,
|
||||||
]);
|
]);
|
||||||
$fields['name'] = BaseFieldDefinition::create('string')
|
$fields['name'] = BaseFieldDefinition::create('string')
|
||||||
->setLabel(t('Name'))
|
->setLabel(t('Case Title'))
|
||||||
->setDescription(t('The name of the Case entity.'))
|
->setDescription(t('A short phrase summing up what this case is about.'))
|
||||||
->setRevisionable(TRUE)
|
->setRevisionable(TRUE)
|
||||||
->setSettings([
|
->setSettings([
|
||||||
'max_length' => 50,
|
'max_length' => 50,
|
||||||
@ -252,7 +252,7 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
|
|||||||
|
|
||||||
$fields['actors_involved'] = BaseFieldDefinition::create('entity_reference')
|
$fields['actors_involved'] = BaseFieldDefinition::create('entity_reference')
|
||||||
->setLabel(t('Involved Parties'))
|
->setLabel(t('Involved Parties'))
|
||||||
->setDescription(t('People involved in this case, in their various capacities'))
|
->setDescription(t('People involved in this case. To add one, start typing their name.'))
|
||||||
->setSetting('target_type', 'oc_actor')
|
->setSetting('target_type', 'oc_actor')
|
||||||
->setSetting('handler', 'default')
|
->setSetting('handler', 'default')
|
||||||
->setTranslatable(TRUE)
|
->setTranslatable(TRUE)
|
||||||
|
Reference in New Issue
Block a user