Hid status field on activity

This commit is contained in:
naomi 2018-04-14 13:18:24 +02:00
parent 484fb5a119
commit 9d84451cb0

View File

@ -204,11 +204,11 @@ class Activity extends ContentEntityBase implements ActivityInterface {
$fields['status'] = BaseFieldDefinition::create('boolean')
->setLabel(t('Publishing status'))
->setDescription(t('A boolean indicating whether the Activity is published.'))
->setDefaultValue(TRUE)
->setDisplayOptions('form', [
'type' => 'boolean_checkbox',
'weight' => -3,
]);
# ->setDisplayOptions('form', [
# 'type' => 'boolean_checkbox',
# 'weight' => -3,
# ])
->setDefaultValue(TRUE);
$fields['created'] = BaseFieldDefinition::create('created')
->setLabel(t('Created'))