changed label of activity_date_time to "Date"
This commit is contained in:
parent
4b84c99541
commit
833c21346d
@ -223,16 +223,14 @@ class OCActivity extends RevisionableContentEntityBase implements OCActivityInte
|
|||||||
$fields = parent::baseFieldDefinitions($entity_type);
|
$fields = parent::baseFieldDefinitions($entity_type);
|
||||||
|
|
||||||
$fields['activity_date_time'] = BaseFieldDefinition::create('datetime')
|
$fields['activity_date_time'] = BaseFieldDefinition::create('datetime')
|
||||||
->setLabel(t('Date and time'))
|
->setLabel(t('Date'))
|
||||||
->setRevisionable(TRUE)
|
->setRevisionable(TRUE)
|
||||||
->setDefaultValueCallback('\Drupal\opencase_entities\Entity\OCActivity::currentDateTime')
|
->setDefaultValueCallback('\Drupal\opencase_entities\Entity\OCActivity::currentDateTime')
|
||||||
->setDisplayConfigurable('form', true)
|
->setDisplayConfigurable('form', true)
|
||||||
->setDisplayConfigurable('view', true)
|
->setDisplayConfigurable('view', true)
|
||||||
->setSettings([
|
->setSettings([
|
||||||
'datetime_type' => 'date'
|
'datetime_type' => 'date'
|
||||||
])
|
]);
|
||||||
->setDisplayConfigurable('form', TRUE)
|
|
||||||
->setDisplayConfigurable('view', TRUE);
|
|
||||||
|
|
||||||
$fields['status'] = BaseFieldDefinition::create('boolean')
|
$fields['status'] = BaseFieldDefinition::create('boolean')
|
||||||
->setLabel(t('Publishing status'))
|
->setLabel(t('Publishing status'))
|
||||||
|
Reference in New Issue
Block a user