X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fdatetime%2Fsrc%2FPlugin%2FField%2FFieldFormatter%2FDateTimeCustomFormatter.php;fp=web%2Fcore%2Fmodules%2Fdatetime%2Fsrc%2FPlugin%2FField%2FFieldFormatter%2FDateTimeCustomFormatter.php;h=e3b9daf2ee2ac71d471c474f86390f58c8827b30;hp=984423d07f53d06fbbc1bc0fda52a37099e17072;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php b/web/core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php index 984423d07..e3b9daf2e 100644 --- a/web/core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php +++ b/web/core/modules/datetime/src/Plugin/Field/FieldFormatter/DateTimeCustomFormatter.php @@ -5,6 +5,7 @@ namespace Drupal\datetime\Plugin\Field\FieldFormatter; use Drupal\Core\Datetime\DrupalDateTime; use Drupal\Core\Field\FieldItemListInterface; use Drupal\Core\Form\FormStateInterface; +use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface; /** * Plugin implementation of the 'Custom' formatter for 'datetime' fields. @@ -24,7 +25,7 @@ class DateTimeCustomFormatter extends DateTimeFormatterBase { */ public static function defaultSettings() { return [ - 'date_format' => DATETIME_DATETIME_STORAGE_FORMAT, + 'date_format' => DateTimeItemInterface::DATETIME_STORAGE_FORMAT, ] + parent::defaultSettings(); }