W3cubDocs

/Drupal 8

public function ConfigEntityStorageInterface::updateFromStorageRecord

public ConfigEntityStorageInterface::updateFromStorageRecord(ConfigEntityInterface $entity, array $values)

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.

See also

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

\Drupal\field\FieldStorageConfigStorage::mapFromStorageRecords()

File

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

Class

ConfigEntityStorageInterface
Provides an interface for configuration entity storage.

Namespace

Drupal\Core\Config\Entity

Code

public function updateFromStorageRecord(ConfigEntityInterface $entity, array $values);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityStorageInterface.php/function/ConfigEntityStorageInterface::updateFromStorageRecord/8.1.x