$fields['target'] = BaseFieldDefinition::create('list_string')
->setLabel(t('Cible de la diapositive'))
->setRequired(TRUE)
->setSetting('allowed_values', [
'individuel' => t('individuel'),
'group' => t('groupe'),
])
->setDefaultValue('individuel')
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE)
->setRequired(TRUE);
Ajouter un commentaire