Made ALL of opencase_defaults config optional.

The idea is you can install it, and use as a basis to configure your own things and then if you uninstall it it shouldn't lose your stuff.
This commit is contained in:
naomi
2018-07-05 17:11:32 +02:00
parent 288751274b
commit 8dc840a53d
127 changed files with 3 additions and 3341 deletions

View File

@ -278,7 +278,7 @@ class OCActivity extends RevisionableContentEntityBase implements OCActivityInte
])
->setRequired(FALSE);
$fields['time_taken'] = BaseFieldDefinition::create('integer')
$fields['time_taken'] = BaseFieldDefinition::create('decimal')
->setLabel(t('Time taken'))
->setRevisionable(TRUE)
->setSettings([
@ -287,11 +287,11 @@ class OCActivity extends RevisionableContentEntityBase implements OCActivityInte
->setDefaultValue('')
->setDisplayOptions('view', [
'label' => 'above',
'type' => 'number_unformatted',
'type' => 'number_decimal',
'weight' => -3,
])
->setDisplayOptions('form', [
'type' => 'number_unformatted',
'type' => 'number_decimal',
'weight' => -3,
]);