function TimestampItem::schema

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/TimestampItem.php \Drupal\Core\Field\Plugin\Field\FieldType\TimestampItem::schema()
  2. 10 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/TimestampItem.php \Drupal\Core\Field\Plugin\Field\FieldType\TimestampItem::schema()
  3. 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/TimestampItem.php \Drupal\Core\Field\Plugin\Field\FieldType\TimestampItem::schema()

Overrides FieldItemInterface::schema

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldType/TimestampItem.php, line 46

Class

TimestampItem
Defines the 'timestamp' entity field type.

Namespace

Drupal\Core\Field\Plugin\Field\FieldType

Code

public static function schema(FieldStorageDefinitionInterface $field_definition) {
    return [
        'columns' => [
            'value' => [
                'type' => 'int',
            ],
        ],
    ];
}

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