Profile labels now read "First Name Last Name - Profile Type"

This commit is contained in:
naomi
2018-04-06 15:34:03 +02:00
parent 4a49cfecfb
commit 3128d0cabf
3 changed files with 19 additions and 19 deletions

View File

@ -253,27 +253,11 @@ class Profile extends RevisionableContentEntityBase implements ProfileInterface
'weight' => 0,
]);
// This field is computed in a presave hook.
$fields['name'] = BaseFieldDefinition::create('string')
->setLabel(t('Name'))
->setDescription(t('The name of the Profile entity.'))
->setRevisionable(TRUE)
->setSettings([
'max_length' => 50,
'text_processing' => 0,
])
->setDefaultValue('')
->setDisplayOptions('view', [
'label' => 'above',
'type' => 'string',
'weight' => -4,
])
->setDisplayOptions('form', [
'type' => 'string_textfield',
'weight' => -4,
])
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE)
->setRequired(TRUE);
->setDescription(t('The name of this profile instance.'))
->setRevisionable(TRUE);
$fields['status'] = BaseFieldDefinition::create('boolean')
->setLabel(t('Publishing status'))