function ListItemBase::defaultStorageSettings

Overrides FieldItemBase::defaultStorageSettings

File

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

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.