changed email fields on org and actor to email type
This commit is contained in:
parent
5e0bde90a0
commit
cd8974fdb9
@ -294,7 +294,7 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface
|
|||||||
->setRequired(TRUE);
|
->setRequired(TRUE);
|
||||||
|
|
||||||
// Contact details.
|
// Contact details.
|
||||||
$fields['email'] = BaseFieldDefinition::create('string')
|
$fields['email'] = BaseFieldDefinition::create('email')
|
||||||
->setLabel(t('Email Address'))
|
->setLabel(t('Email Address'))
|
||||||
->setRevisionable(TRUE)
|
->setRevisionable(TRUE)
|
||||||
->setSettings(array(
|
->setSettings(array(
|
||||||
|
@ -250,14 +250,10 @@ class OCOrganisation extends EditorialContentEntityBase implements OCOrganisatio
|
|||||||
->setDisplayConfigurable('form', true)
|
->setDisplayConfigurable('form', true)
|
||||||
->setDisplayConfigurable('view', true)
|
->setDisplayConfigurable('view', true)
|
||||||
->setRequired(FALSE);
|
->setRequired(FALSE);
|
||||||
$fields['email'] = BaseFieldDefinition::create('string')
|
|
||||||
|
$fields['email'] = BaseFieldDefinition::create('email')
|
||||||
->setLabel(t('Email Address'))
|
->setLabel(t('Email Address'))
|
||||||
->setRevisionable(TRUE)
|
->setRevisionable(TRUE)
|
||||||
->setSettings(array(
|
|
||||||
'default_value' => '',
|
|
||||||
'max_length' => 100,
|
|
||||||
'text_processing' => 0,
|
|
||||||
))
|
|
||||||
->setDisplayConfigurable('form', true)
|
->setDisplayConfigurable('form', true)
|
||||||
->setDisplayConfigurable('view', true);
|
->setDisplayConfigurable('view', true);
|
||||||
|
|
||||||
@ -305,7 +301,7 @@ class OCOrganisation extends EditorialContentEntityBase implements OCOrganisatio
|
|||||||
->setDisplayConfigurable('view', true)
|
->setDisplayConfigurable('view', true)
|
||||||
->setRequired(FALSE);
|
->setRequired(FALSE);
|
||||||
|
|
||||||
$fields['billing_email'] = BaseFieldDefinition::create('string')
|
$fields['billing_email'] = BaseFieldDefinition::create('email')
|
||||||
->setLabel(t('Billing Email Address'))
|
->setLabel(t('Billing Email Address'))
|
||||||
->setRevisionable(TRUE)
|
->setRevisionable(TRUE)
|
||||||
->setSettings(array(
|
->setSettings(array(
|
||||||
|
Reference in New Issue
Block a user