moved consent field to opencase_defaults and removed automatic "see all people" menu links

This commit is contained in:
Naomi
2020-11-20 11:00:52 +00:00
parent 7c5ee54a44
commit dfb12d9be6
5 changed files with 15 additions and 81 deletions

View File

@ -283,17 +283,6 @@ class OCActor extends RevisionableContentEntityBase implements OCActorInterface
])
->setRequired(TRUE);
$fields['consent'] = BaseFieldDefinition::create('boolean')
->setLabel(t('Consent to data storage'))
->setDescription(t('Has this person explicitly consented to having their personal data stored on this system?'))
->setRevisionable(TRUE)
->setDefaultValue(FALSE)
->setRequired(TRUE)
->setDisplayOptions('form', array(
'type' => 'boolean_checkbox',
'weight' => -6,
));
// Contact details.
// so it is not exposed to user configuration.
$fields['email'] = BaseFieldDefinition::create('string')