public function DateFieldItem::getPropertyDefinitions in Date 8
Implements ComplexDataInterface::getPropertyDefinitions().
File
- date_field/
lib/ Drupal/ date_field/ Type/ DateFieldItem.php, line 29 - Definition of Drupal\date\Type\DateItem.
Class
- DateFieldItem
- Defines the 'text_item' and 'text_long_item' entity field items.
Namespace
Drupal\date_field\TypeCode
public function getPropertyDefinitions() {
if (!isset(self::$propertyDefinitions)) {
self::$propertyDefinitions['value'] = array(
'type' => 'date',
'label' => t('Date value'),
);
self::$propertyDefinitions['value2'] = array(
'type' => 'date',
'label' => t('End Date value'),
);
self::$propertyDefinitions['data'] = array(
'type' => 'string',
'label' => t('A serialized array with more date info.'),
);
}
return self::$propertyDefinitions;
}