function DateTimeItem::defaultStorageSettings

Same name in other branches
  1. 9 core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php \Drupal\datetime\Plugin\Field\FieldType\DateTimeItem::defaultStorageSettings()
  2. 10 core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php \Drupal\datetime\Plugin\Field\FieldType\DateTimeItem::defaultStorageSettings()
  3. 11.x core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php \Drupal\datetime\Plugin\Field\FieldType\DateTimeItem::defaultStorageSettings()

Overrides FieldItemBase::defaultStorageSettings

File

core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php, line 29

Class

DateTimeItem
Plugin implementation of the 'datetime' field type.

Namespace

Drupal\datetime\Plugin\Field\FieldType

Code

public static function defaultStorageSettings() {
    return [
        'datetime_type' => 'datetime',
    ] + parent::defaultStorageSettings();
}

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