You are here

public static function FieldItemBase::storageSettingsFromConfigData in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData()
  2. 9 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::storageSettingsFromConfigData()

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

This function does the inverse of static::storageSettingsToConfigData(). 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 settings, in the representation expected by the field type and code that interacts with it.

Overrides FieldItemInterface::storageSettingsFromConfigData

See also

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

2 methods override FieldItemBase::storageSettingsFromConfigData()
ListItemBase::storageSettingsFromConfigData in core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php
Returns a settings array in the field type's canonical representation.
TestItem::storageSettingsFromConfigData in core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldType/TestItem.php
Returns a settings array in the field type's canonical representation.

File

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

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

public static function storageSettingsFromConfigData(array $settings) {
  return $settings;
}