W3cubDocs

/Drupal 8

public static function FieldItemBase::fieldSettingsToConfigData

public static FieldItemBase::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.

Overrides FieldItemInterface::fieldSettingsToConfigData

See also

\Drupal\Core\Field\FieldItemInterface::storageSettingsToConfigData()

File

core/lib/Drupal/Core/Field/FieldItemBase.php, line 247

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

public static function fieldSettingsToConfigData(array $settings) {
  return $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!FieldItemBase.php/function/FieldItemBase::fieldSettingsToConfigData/8.1.x