Same name and namespace in other branches
- 8.9.x core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItemInterface.php \Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface
- 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
13 files declare their use of DateTimeItemInterface
- Date.php in core/
modules/ datetime/ src/ Plugin/ views/ filter/ Date.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 - DateRangeWidgetBase.php in core/
modules/ datetime_range/ src/ Plugin/ Field/ FieldWidget/ DateRangeWidgetBase.php - DateTimeComputed.php in core/
modules/ datetime/ src/ DateTimeComputed.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. |