Defines the 'text_item' and 'text_long_item' entity field items.
Expanded class hierarchy of TextItem
class TextItem extends FieldItemBase {
/**
* Field definitions of the contained properties.
*
* @see self::getPropertyDefinitions()
*
* @var array
*/
static $propertyDefinitions;
/**
* Implements ComplexDataInterface::getPropertyDefinitions().
*/
public function getPropertyDefinitions() {
if (!isset(self::$propertyDefinitions)) {
self::$propertyDefinitions['value'] = array(
'type' => 'string',
'label' => t('Text value'),
);
self::$propertyDefinitions['format'] = array(
'type' => 'string',
'label' => t('Text format'),
);
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;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FieldItemBase:: |
protected | property | The item delta or name. | |
FieldItemBase:: |
protected | property | The parent entity field. | |
FieldItemBase:: |
protected | property | The array of properties. | |
FieldItemBase:: |
public | function |
Implements ComplexDataInterface::get(). Overrides ComplexDataInterface:: |
|
FieldItemBase:: |
public | function | Implements IteratorAggregate::getIterator(). | |
FieldItemBase:: |
public | function |
Implements ContextAwareInterface::getName(). Overrides ContextAwareInterface:: |
|
FieldItemBase:: |
public | function |
Implements ContextAwareInterface::getParent(). Overrides ContextAwareInterface:: |
|
FieldItemBase:: |
public | function |
Implements ComplexDataInterface::getProperties(). Overrides ComplexDataInterface:: |
|
FieldItemBase:: |
public | function |
Implements ComplexDataInterface::getPropertyDefinition(). Overrides ComplexDataInterface:: |
|
FieldItemBase:: |
public | function |
Implements ComplexDataInterface::getPropertyValues(). Overrides ComplexDataInterface:: |
|
FieldItemBase:: |
public | function |
Implements TypedDataInterface::getString(). Overrides TypedData:: |
|
FieldItemBase:: |
public | function |
Implements TypedDataInterface::getValue(). Overrides TypedData:: |
|
FieldItemBase:: |
public | function |
Implements ComplexDataInterface::isEmpty(). Overrides ComplexDataInterface:: |
|
FieldItemBase:: |
public | function |
Implements ComplexDataInterface::set(). Overrides ComplexDataInterface:: |
|
FieldItemBase:: |
public | function |
Implements ContextAwareInterface::setName(). Overrides ContextAwareInterface:: |
|
FieldItemBase:: |
public | function |
Implements ContextAwareInterface::setParent(). Overrides ContextAwareInterface:: |
|
FieldItemBase:: |
public | function |
Implements ComplexDataInterface::setPropertyValues(). Overrides ComplexDataInterface:: |
|
FieldItemBase:: |
public | function |
Implements TypedDataInterface::setValue(). Overrides TypedData:: |
3 |
FieldItemBase:: |
public | function |
Implements TypedDataInterface::validate(). Overrides TypedDataInterface:: |
|
FieldItemBase:: |
public | function | Implements a deep clone. | |
FieldItemBase:: |
public | function |
Implements TypedDataInterface::__construct(). Overrides TypedData:: |
|
FieldItemBase:: |
public | function |
Implements FieldItemInterface::__get(). Overrides FieldItemInterface:: |
|
FieldItemBase:: |
public | function |
Implements FieldItemInterface::__isset(). Overrides FieldItemInterface:: |
|
FieldItemBase:: |
public | function |
Implements FieldItemInterface::__set(). Overrides FieldItemInterface:: |
|
FieldItemBase:: |
public | function |
Implements FieldItemInterface::__unset(). Overrides FieldItemInterface:: |
|
TextItem:: |
static | property | Field definitions of the contained properties. | 1 |
TextItem:: |
public | function |
Implements ComplexDataInterface::getPropertyDefinitions(). Overrides ComplexDataInterface:: |
1 |
TypedData:: |
protected | property | The data definition. | |
TypedData:: |
public | function |
Implements TypedDataInterface::getDefinition(). Overrides TypedDataInterface:: |
|
TypedData:: |
public | function |
Implements TypedDataInterface::getType(). Overrides TypedDataInterface:: |