interface DateTimeItemInterface
Same name in other branches
- 9 core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface
- 8.9.x core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface
- 10 core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface
Interface definition for Datetime items.
Hierarchy
- interface \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface
Expanded class hierarchy of DateTimeItemInterface
All classes that implement DateTimeItemInterface
19 files declare their use of DateTimeItemInterface
- Date.php in core/
modules/ datetime/ src/ Plugin/ views/ filter/ Date.php - DateField.php in core/
modules/ datetime/ src/ Plugin/ migrate/ field/ DateField.php - DateRangeFieldItemList.php in core/
modules/ datetime_range/ src/ Plugin/ Field/ FieldType/ DateRangeFieldItemList.php - DateRangeFieldTest.php in core/
modules/ datetime_range/ tests/ src/ Functional/ DateRangeFieldTest.php - DateRangeItem.php in core/
modules/ datetime_range/ src/ Plugin/ Field/ FieldType/ DateRangeItem.php
File
-
core/
modules/ datetime/ src/ Plugin/ Field/ FieldType/ DateTimeItemInterface.php, line 8
Namespace
Drupal\datetime\Plugin\Field\FieldTypeView source
interface DateTimeItemInterface {
/**
* Defines the timezone that dates should be stored in.
*/
const STORAGE_TIMEZONE = 'UTC';
/**
* Defines the format that date and time should be stored in.
*/
const DATETIME_STORAGE_FORMAT = 'Y-m-d\\TH:i:s';
/**
* Defines the format that dates should be stored in.
*/
const DATE_STORAGE_FORMAT = 'Y-m-d';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
DateTimeItemInterface::DATETIME_STORAGE_FORMAT | constant | Defines the format that date and time should be stored in. | |
DateTimeItemInterface::DATE_STORAGE_FORMAT | constant | Defines the format that dates should be stored in. | |
DateTimeItemInterface::STORAGE_TIMEZONE | constant | Defines the timezone that dates should be stored in. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.