changed label of activity_date_time to "Date"

This commit is contained in:
naomi 2021-12-05 16:27:07 +00:00
parent 4b84c99541
commit 833c21346d

View File

@ -223,16 +223,14 @@ class OCActivity extends RevisionableContentEntityBase implements OCActivityInte
$fields = parent::baseFieldDefinitions($entity_type);
$fields['activity_date_time'] = BaseFieldDefinition::create('datetime')
->setLabel(t('Date and time'))
->setLabel(t('Date'))
->setRevisionable(TRUE)
->setDefaultValueCallback('\Drupal\opencase_entities\Entity\OCActivity::currentDateTime')
->setDisplayConfigurable('form', true)
->setDisplayConfigurable('view', true)
->setSettings([
'datetime_type' => 'date'
])
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE);
]);
$fields['status'] = BaseFieldDefinition::create('boolean')
->setLabel(t('Publishing status'))