v1.7 - Removed seconds from date and time field

Also altered activities view to show this field instead of created date.
This commit is contained in:
Naomi
2020-03-01 09:42:06 +00:00
parent 7f88d409f0
commit b83f0b44b4
3 changed files with 96 additions and 67 deletions

View File

@ -1,5 +1,11 @@
<?php
function opencase_entities_update_8016() {
$update_manager = \Drupal::entityDefinitionUpdateManager();
$definition = $update_manager->getFieldStorageDefinition('activity_date_time', 'oc_activity');
$update_manager->updateFieldStorageDefinition($definition);
}
/**
* Add 'activity_date_time' field to 'oc_activity' entities.
*/