public function DateItem::getPropertyDefinitions in Date 8
Implements ComplexDataInterface::getPropertyDefinitions().
File
- lib/
Drupal/ date/ Type/ DateItem.php, line 29 - Definition of Drupal\date\Type\DateItem.
Class
- DateItem
- Defines the 'text_item' and 'text_long_item' entity field items.
Namespace
Drupal\date\TypeCode
public function getPropertyDefinitions() {
if (!isset(self::$propertyDefinitions)) {
self::$propertyDefinitions['value'] = array(
'type' => 'string',
'label' => t('Date value'),
);
self::$propertyDefinitions['value2'] = array(
'type' => 'string',
'label' => t('End Date value'),
);
self::$propertyDefinitions['processed'] = array(
'type' => 'string',
'label' => t('Processed text'),
'description' => t('The text value with the text format applied.'),
'computed' => TRUE,
'class' => '\\Drupal\\text\\TextProcessed',
'settings' => array(
'text source' => 'value',
),
);
}
return self::$propertyDefinitions;
}