From 8cde0b88926e66c1cfb3aa72d2b7ba5ac687ee56 Mon Sep 17 00:00:00 2001 From: naomi Date: Thu, 11 Nov 2021 14:35:45 +0000 Subject: [PATCH] made published field configurable on case fee --- modules/opencase_cases/src/Entity/OCCaseFee.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/opencase_cases/src/Entity/OCCaseFee.php b/modules/opencase_cases/src/Entity/OCCaseFee.php index 8421597..6a10ef4 100644 --- a/modules/opencase_cases/src/Entity/OCCaseFee.php +++ b/modules/opencase_cases/src/Entity/OCCaseFee.php @@ -242,10 +242,8 @@ class OCCaseFee extends EditorialContentEntityBase implements OCCaseFeeInterface ->setRequired(TRUE); $fields['status']->setDescription(t('A boolean indicating whether the Case Fee is published.')) - ->setDisplayOptions('form', [ - 'type' => 'boolean_checkbox', - 'weight' => -3, - ]); + ->setDisplayConfigurable('form', TRUE) + ->setDisplayConfigurable('view', TRUE); $fields['created'] = BaseFieldDefinition::create('created') ->setLabel(t('Created'))