function ListItemBase::defaultStorageSettings

Same name in other branches
  1. 9 core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::defaultStorageSettings()
  2. 8.9.x core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::defaultStorageSettings()
  3. 10 core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::defaultStorageSettings()

Overrides FieldItemBase::defaultStorageSettings

File

core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php, line 27

Class

ListItemBase
Plugin base class inherited by the options field types.

Namespace

Drupal\options\Plugin\Field\FieldType

Code

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

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