function TimestampItem::propertyDefinitions
Same name in other branches
- 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/TimestampItem.php \Drupal\Core\Field\Plugin\Field\FieldType\TimestampItem::propertyDefinitions()
- 8.9.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/TimestampItem.php \Drupal\Core\Field\Plugin\Field\FieldType\TimestampItem::propertyDefinitions()
- 10 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/TimestampItem.php \Drupal\Core\Field\Plugin\Field\FieldType\TimestampItem::propertyDefinitions()
Overrides FieldItemInterface::propertyDefinitions
File
-
core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ TimestampItem.php, line 42
Class
- TimestampItem
- Defines the 'timestamp' entity field type.
Namespace
Drupal\Core\Field\Plugin\Field\FieldTypeCode
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition) {
$properties['value'] = DataDefinition::create('timestamp')->setLabel(t('Timestamp value'))
->setRequired(TRUE);
return $properties;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.