Implements ComplexDataInterface::getPropertyDefinitions().
Overrides Map::getPropertyDefinitions
public function getPropertyDefinitions() {
if (!isset(static::$propertyDefinitions)) {
static::$propertyDefinitions['value'] = array(
'type' => 'string',
'label' => t('Text value'),
);
static::$propertyDefinitions['format'] = array(
'type' => 'string',
'label' => t('Text format'),
);
static::$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 static::$propertyDefinitions;
}