function FieldItemInterface::fieldSettingsToConfigData

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::fieldSettingsToConfigData()
  2. 10 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::fieldSettingsToConfigData()
  3. 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 327

Class

FieldItemInterface
Interface for entity field items.

Namespace

Drupal\Core\Field

Code

public static function fieldSettingsToConfigData(array $settings);

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