function DateField::getFieldFormatterMap

Same name in other branches
  1. 8.9.x core/modules/datetime/src/Plugin/migrate/field/DateField.php \Drupal\datetime\Plugin\migrate\field\DateField::getFieldFormatterMap()
  2. 10 core/modules/datetime/src/Plugin/migrate/field/DateField.php \Drupal\datetime\Plugin\migrate\field\DateField::getFieldFormatterMap()
  3. 11.x core/modules/datetime/src/Plugin/migrate/field/DateField.php \Drupal\datetime\Plugin\migrate\field\DateField::getFieldFormatterMap()

Overrides FieldPluginBase::getFieldFormatterMap

File

core/modules/datetime/src/Plugin/migrate/field/DateField.php, line 33

Class

DateField
Provides a field plugin for date and time fields.

Namespace

Drupal\datetime\Plugin\migrate\field

Code

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',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.