public static function FieldItemBase::fieldSettingsToConfigData in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData()
- 10 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::fieldSettingsToConfigData()
Returns a settings array that can be stored as a configuration value.
Same as static::storageSettingsToConfigData(), but for the field's settings.
Parameters
array $settings: The field's settings in the field type's canonical representation.
Return value
array An array (either the unmodified $settings or a modified representation) that is suitable for storing as a deployable configuration value.
Overrides FieldItemInterface::fieldSettingsToConfigData
See also
\Drupal\Core\Field\FieldItemInterface::storageSettingsToConfigData()
1 method overrides FieldItemBase::fieldSettingsToConfigData()
- TestItem::fieldSettingsToConfigData in core/
modules/ field/ tests/ modules/ field_test/ src/ Plugin/ Field/ FieldType/ TestItem.php - Returns a settings array that can be stored as a configuration value.
File
- core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php, line 247
Class
- FieldItemBase
- An entity field item.
Namespace
Drupal\Core\FieldCode
public static function fieldSettingsToConfigData(array $settings) {
return $settings;
}