You are here

public static function TextItem::defaultStorageSettings in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/text/src/Plugin/Field/FieldType/TextItem.php \Drupal\text\Plugin\Field\FieldType\TextItem::defaultStorageSettings()
  2. 10 core/modules/text/src/Plugin/Field/FieldType/TextItem.php \Drupal\text\Plugin\Field\FieldType\TextItem::defaultStorageSettings()

Defines the storage-level settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides FieldItemBase::defaultStorageSettings

File

core/modules/text/src/Plugin/Field/FieldType/TextItem.php, line 25

Class

TextItem
Plugin implementation of the 'text' field type.

Namespace

Drupal\text\Plugin\Field\FieldType

Code

public static function defaultStorageSettings() {
  return [
    'max_length' => 255,
  ] + parent::defaultStorageSettings();
}