interface DateTimeItemInterface in Drupal 8
Same name and namespace in other branches
- 9 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
18 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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DateTimeItemInterface:: |
constant | Defines the format that date and time should be stored in. | ||
DateTimeItemInterface:: |
constant | Defines the format that dates should be stored in. | ||
DateTimeItemInterface:: |
constant | Defines the timezone that dates should be stored in. |