W3cubDocs

/Drupal 8

public function ConfigEntityStorage::createFromStorageRecord

public ConfigEntityStorage::createFromStorageRecord(array $values)

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

core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 426

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

public function createFromStorageRecord(array $values) {
  return $this->_doCreateFromStorageRecord($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!ConfigEntityStorage.php/function/ConfigEntityStorage::createFromStorageRecord/8.1.x