Commit a31f26cc authored by catch's avatar catch
Browse files

Issue #3213616 by n4r3n, Wim Leers, quietone: Map all Datetime module's field...

Issue #3213616 by n4r3n, Wim Leers, quietone: Map all Datetime module's field formatters from D6/D7 to D8/D9

(cherry picked from commit 8e58cdb8)
parent f77819a6
......@@ -30,6 +30,10 @@ class DateField extends FieldPluginBase {
public function getFieldFormatterMap() {
return [
'date_default' => 'datetime_default',
'format_interval' => 'datetime_time_ago',
// The date_plain formatter exists in Drupal 7 but not Drupal 6. It is
// added here because this plugin is declared for Drupal 6 and Drupal 7.
'date_plain' => 'datetime_plain',
];
}
......
......@@ -159,6 +159,8 @@ public function addAllFieldProcessesAltersData() {
],
'datetime' => [
'date_default' => 'datetime_default',
'format_interval' => 'datetime_time_ago',
'date_plain' => 'datetime_plain',
],
'filefield' => [
'default' => 'file_default',
......
......@@ -266,6 +266,8 @@ public function addAllFieldProcessesAltersData() {
],
'datetime' => [
'date_default' => 'datetime_default',
'format_interval' => 'datetime_time_ago',
'date_plain' => 'datetime_plain',
],
'telephone' => [
'text_plain' => 'string',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment