added defauilt value to OCCaseFee

This commit is contained in:
Nick 2022-06-03 11:51:37 +02:00
parent f9654bcd78
commit 57795b6393

View File

@ -230,7 +230,8 @@ class OCCaseFee extends EditorialContentEntityBase implements OCCaseFeeInterface
->setLabel(t('Visible')) ->setLabel(t('Visible'))
->setDescription(t('A boolean indicating whether the Case Fee is published.')) ->setDescription(t('A boolean indicating whether the Case Fee is published.'))
->setDisplayConfigurable('form', TRUE) ->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE); ->setDisplayConfigurable('view', TRUE)
->setDefaultValue(TRUE);
$fields['created'] = BaseFieldDefinition::create('created') $fields['created'] = BaseFieldDefinition::create('created')
->setLabel(t('Created')) ->setLabel(t('Created'))
@ -268,7 +269,7 @@ class OCCaseFee extends EditorialContentEntityBase implements OCCaseFeeInterface
->setDisplayConfigurable("view", true) ->setDisplayConfigurable("view", true)
->setDisplayConfigurable("form", true) ->setDisplayConfigurable("form", true)
->setRequired(FALSE); ->setRequired(FALSE);
$fields['description'] = BaseFieldDefinition::create('string_long') $fields['description'] = BaseFieldDefinition::create('string_long')
->setRevisionable(TRUE) ->setRevisionable(TRUE)
->setLabel(t('Description')) ->setLabel(t('Description'))