function FieldItemInterface::fieldSettingsToConfigData
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::fieldSettingsToConfigData()
- 8.9.x core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::fieldSettingsToConfigData()
- 11.x core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::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.
See also
\Drupal\Core\Field\FieldItemInterface::storageSettingsToConfigData()
1 method overrides FieldItemInterface::fieldSettingsToConfigData()
- FieldItemBase::fieldSettingsToConfigData in core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php - Returns a settings array that can be stored as a configuration value.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemInterface.php, line 362
Class
- FieldItemInterface
- Interface for entity field items.
Namespace
Drupal\Core\FieldCode
public static function fieldSettingsToConfigData(array $settings);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.