function TextLongItem::schema
Same name in other branches
- 9 core/modules/text/src/Plugin/Field/FieldType/TextLongItem.php \Drupal\text\Plugin\Field\FieldType\TextLongItem::schema()
- 10 core/modules/text/src/Plugin/Field/FieldType/TextLongItem.php \Drupal\text\Plugin\Field\FieldType\TextLongItem::schema()
- 11.x core/modules/text/src/Plugin/Field/FieldType/TextLongItem.php \Drupal\text\Plugin\Field\FieldType\TextLongItem::schema()
Overrides FieldItemInterface::schema
1 call to TextLongItem::schema()
- EntityViewsDataTest::setupFieldStorageDefinition in core/
modules/ views/ tests/ src/ Unit/ EntityViewsDataTest.php - Helper method to mock all store definitions.
File
-
core/
modules/ text/ src/ Plugin/ Field/ FieldType/ TextLongItem.php, line 24
Class
- TextLongItem
- Plugin implementation of the 'text_long' field type.
Namespace
Drupal\text\Plugin\Field\FieldTypeCode
public static function schema(FieldStorageDefinitionInterface $field_definition) {
return [
'columns' => [
'value' => [
'type' => 'text',
'size' => 'big',
],
'format' => [
'type' => 'varchar_ascii',
'length' => 255,
],
],
'indexes' => [
'format' => [
'format',
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.