Added base field "contact role" to organisation, and bumped version
This commit is contained in:
@ -213,7 +213,7 @@ class OCOrganisation extends EditorialContentEntityBase implements OCOrganisatio
|
||||
));
|
||||
$fields['contact_name'] = BaseFieldDefinition::create('string')
|
||||
->setLabel(t('Contact Name'))
|
||||
->setDescription(t('Name of the main contact for this client.'))
|
||||
->setDescription(t('Name of the main contact for this organisation.'))
|
||||
->setRevisionable(TRUE)
|
||||
->setSettings([
|
||||
'max_length' => 50,
|
||||
@ -231,6 +231,25 @@ class OCOrganisation extends EditorialContentEntityBase implements OCOrganisatio
|
||||
])
|
||||
->setRequired(FALSE);
|
||||
|
||||
$fields['contact_role'] = BaseFieldDefinition::create('string')
|
||||
->setLabel(t('Contact Role'))
|
||||
->setDescription(t('Role of the contact within the organisation'))
|
||||
->setRevisionable(TRUE)
|
||||
->setSettings([
|
||||
'max_length' => 50,
|
||||
'text_processing' => 0,
|
||||
])
|
||||
->setDefaultValue('')
|
||||
->setDisplayOptions('view', [
|
||||
'label' => 'above',
|
||||
'type' => 'string',
|
||||
'weight' => 52,
|
||||
])
|
||||
->setDisplayOptions('form', [
|
||||
'type' => 'string_textfield',
|
||||
'weight' => 52,
|
||||
])
|
||||
->setRequired(FALSE);
|
||||
$fields['email'] = BaseFieldDefinition::create('string')
|
||||
->setLabel(t('Email Address'))
|
||||
->setRevisionable(TRUE)
|
||||
|
Reference in New Issue
Block a user