Made published field configurable on forms, and made views respect permissions

This commit is contained in:
2021-09-13 14:15:02 +01:00
parent b1a8534d29
commit ac4e6eddd5
6 changed files with 31 additions and 4 deletions

View File

@ -208,6 +208,7 @@ class OCCase extends RevisionableContentEntityBase implements OCCaseInterface {
->setLabel(t('Publishing status'))
->setDescription(t('A boolean indicating whether the Case is published.'))
->setRevisionable(TRUE)
->setDisplayConfigurable("form", TRUE)
->setDefaultValue(TRUE);
$fields['user_id'] = BaseFieldDefinition::create('entity_reference')