function ConfigEntityStorageInterface::createFromStorageRecord

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php \Drupal\Core\Config\Entity\ConfigEntityStorageInterface::createFromStorageRecord()
  2. 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php \Drupal\Core\Config\Entity\ConfigEntityStorageInterface::createFromStorageRecord()
  3. 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php \Drupal\Core\Config\Entity\ConfigEntityStorageInterface::createFromStorageRecord()

Creates a configuration entity from storage values.

Allows the configuration entity storage to massage storage values before creating an entity.

Parameters

array $values: The array of values from the configuration storage.

Return value

ConfigEntityInterface The configuration entity.

See also

\Drupal\Core\Entity\EntityStorageBase::mapFromStorageRecords()

\Drupal\field\FieldStorageConfigStorage::mapFromStorageRecords()

1 method overrides ConfigEntityStorageInterface::createFromStorageRecord()
ConfigEntityStorage::createFromStorageRecord in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
Creates a configuration entity from storage values.

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php, line 41

Class

ConfigEntityStorageInterface
Provides an interface for configuration entity storage.

Namespace

Drupal\Core\Config\Entity

Code

public function createFromStorageRecord(array $values);

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