W3cubDocs

/Drupal 8

public static function FieldItemBase::fieldSettingsFromConfigData

public static FieldItemBase::fieldSettingsFromConfigData(array $settings)

Returns a settings array in the field type's canonical representation.

This function does the inverse of static::fieldSettingsToConfigData(). It's called when loading a field's settings from a configuration object.

Parameters

array $settings: The field's settings, as it is stored within a configuration object.

Return value

array The field settings, in the representation expected by the field type and code that interacts with it.

Overrides FieldItemInterface::fieldSettingsFromConfigData

See also

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

File

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

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

public static function fieldSettingsFromConfigData(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::fieldSettingsFromConfigData/8.1.x