public function ConfigEntityStorageDecorator::updateFromStorageRecord in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::updateFromStorageRecord()
- 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::updateFromStorageRecord()
- 4.x 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\ConfigCode
public function updateFromStorageRecord(ConfigEntityInterface $entity, array $values) {
return $this
->getOriginalObject()
->updateFromStorageRecord($entity, $values);
}