You are here

public function ConfigEntityStorageDecorator::updateFromStorageRecord 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::updateFromStorageRecord()
  2. 8 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::updateFromStorageRecord()
  3. 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::updateFromStorageRecord()

Updates a configuration entity from storage values.

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

Parameters

ConfigEntityInterface $entity: The configuration entity to update.

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

Return value

ConfigEntityInterface The configuration entity.

Overrides ConfigEntityStorageInterface::updateFromStorageRecord

See also

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

\Drupal\field\FieldStorageConfigStorage::mapFromStorageRecords()

File

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

Class

ConfigEntityStorageDecorator
Class ConfigEntityStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public function updateFromStorageRecord(ConfigEntityInterface $entity, array $values) {
  return $this
    ->getOriginalObject()
    ->updateFromStorageRecord($entity, $values);
}