You are here

public function ConfigEntityStorageDecorator::createFromStorageRecord in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::createFromStorageRecord()
  2. 8 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::createFromStorageRecord()
  3. 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::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.

Overrides ConfigEntityStorageInterface::createFromStorageRecord

See also

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

\Drupal\field\FieldStorageConfigStorage::mapFromStorageRecords()

File

webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php, line 149

Class

ConfigEntityStorageDecorator
Class ConfigEntityStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function createFromStorageRecord(array $values) {
  return $this
    ->getOriginalObject()
    ->createFromStorageRecord($values);
}