W3cubDocs

/Drupal 8

public static function FieldItemInterface::fieldSettingsToConfigData

public static FieldItemInterface::fieldSettingsToConfigData(array $settings)

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()

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);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!FieldItemInterface.php/function/FieldItemInterface::fieldSettingsToConfigData/8.1.x