made field display configurable

This commit is contained in:
naomi 2021-11-12 06:36:52 +00:00
parent de691b5a52
commit 3eba291d5a

View File

@ -242,10 +242,9 @@ class OCCaseProvision extends EditorialContentEntityBase implements OCCaseProvis
->setRequired(TRUE); ->setRequired(TRUE);
$fields['status']->setDescription(t('A boolean indicating whether the Case Provision is published.')) $fields['status']->setDescription(t('A boolean indicating whether the Case Provision is published.'))
->setDisplayOptions('form', [ ->setDisplayConfigurable('form', TRUE)
'type' => 'boolean_checkbox', ->setDisplayConfigurable('view', TRUE);
'weight' => -3,
]);
$fields['created'] = BaseFieldDefinition::create('created') $fields['created'] = BaseFieldDefinition::create('created')
->setLabel(t('Created')) ->setLabel(t('Created'))