function ListItemBase::storageSettingsToConfigData

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

Overrides FieldItemBase::storageSettingsToConfigData

File

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

Class

ListItemBase
Plugin base class inherited by the options field types.

Namespace

Drupal\options\Plugin\Field\FieldType

Code

public static function storageSettingsToConfigData(array $settings) {
    if (isset($settings['allowed_values'])) {
        $settings['allowed_values'] = static::structureAllowedValues($settings['allowed_values']);
    }
    return $settings;
}

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