function StringLongItem::schema

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringLongItem.php \Drupal\Core\Field\Plugin\Field\FieldType\StringLongItem::schema()
  2. 8.9.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringLongItem.php \Drupal\Core\Field\Plugin\Field\FieldType\StringLongItem::schema()
  3. 11.x core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringLongItem.php \Drupal\Core\Field\Plugin\Field\FieldType\StringLongItem::schema()

Overrides FieldItemInterface::schema

File

core/lib/Drupal/Core/Field/Plugin/Field/FieldType/StringLongItem.php, line 31

Class

StringLongItem
Defines the 'string_long' field type.

Namespace

Drupal\Core\Field\Plugin\Field\FieldType

Code

public static function schema(FieldStorageDefinitionInterface $field_definition) {
    return [
        'columns' => [
            'value' => [
                'type' => $field_definition->getSetting('case_sensitive') ? 'blob' : 'text',
                'size' => 'big',
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.