Hid status field on activity
This commit is contained in:
parent
484fb5a119
commit
9d84451cb0
@ -204,11 +204,11 @@ class Activity extends ContentEntityBase implements ActivityInterface {
|
|||||||
$fields['status'] = BaseFieldDefinition::create('boolean')
|
$fields['status'] = BaseFieldDefinition::create('boolean')
|
||||||
->setLabel(t('Publishing status'))
|
->setLabel(t('Publishing status'))
|
||||||
->setDescription(t('A boolean indicating whether the Activity is published.'))
|
->setDescription(t('A boolean indicating whether the Activity is published.'))
|
||||||
->setDefaultValue(TRUE)
|
# ->setDisplayOptions('form', [
|
||||||
->setDisplayOptions('form', [
|
# 'type' => 'boolean_checkbox',
|
||||||
'type' => 'boolean_checkbox',
|
# 'weight' => -3,
|
||||||
'weight' => -3,
|
# ])
|
||||||
]);
|
->setDefaultValue(TRUE);
|
||||||
|
|
||||||
$fields['created'] = BaseFieldDefinition::create('created')
|
$fields['created'] = BaseFieldDefinition::create('created')
|
||||||
->setLabel(t('Created'))
|
->setLabel(t('Created'))
|
||||||
|
Reference in New Issue
Block a user