Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DateField.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal