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\EntitySto

ConfigEntityStorageInterface::loadOverrideFree

public ConfigEntityStorageInterface::loadOverrideFree($id) Loads one entity in their original form without overrides. Parameters mixed $id: The ID of the entity to load. Return value \Drupal\Core\Entity\EntityInterface|null An entity object. NULL if no matching entity is found. File core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php, line 71 Class ConfigEntityStorageInterface Provides an interface for configuration entity storage. Namespace Drupal\Core\Config\Entity

ConfigEntityStorageInterface::loadMultipleOverrideFree

public ConfigEntityStorageInterface::loadMultipleOverrideFree(array $ids = NULL) Loads one or more entities in their original form without overrides. Parameters $ids: An array of entity IDs, or NULL to load all entities. Return value \Drupal\Core\Entity\EntityInterface[] An array of entity objects indexed by their IDs. Returns an empty array if no matching entities are found. File core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php, line 83 Class ConfigEntityStorageInterfa

ConfigEntityStorageInterface::getIDFromConfigName

public static ConfigEntityStorageInterface::getIDFromConfigName($config_name, $config_prefix) Extracts the configuration entity ID from the full configuration name. Parameters string $config_name: The full configuration name to extract the ID from; for example, 'views.view.archive'. string $config_prefix: The config prefix of the configuration entity; for example, 'views.view'. Return value string The ID of the configuration entity. File core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageI

ConfigEntityStorageInterface::createFromStorageRecord

public ConfigEntityStorageInterface::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. See also \Drupal\Core\Entity\EntityStorageBase::mapFromStorageRecords() \Drupal\field\FieldStorageConfigStorage::mapFromStorageRecords()

ConfigEntityStorageInterface

Provides an interface for configuration entity storage. Hierarchy interface \Drupal\Core\Entity\EntityStorageInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityStorageInterface File core/lib/Drupal/Core/Config/Entity/ConfigEntityStorageInterface.php, line 10 Namespace Drupal\Core\Config\Entity Members Name Modifiers Type Description ConfigEntityStorageInterface::createFromStorageRecord public function Creates a configuration entity from storage values. ConfigEn

ConfigEntityStorageClassException

Thrown when a storage class is not an instance of ConfigEntityStorage. Hierarchy class \Drupal\Core\Config\ConfigException extends \RuntimeExceptionclass \Drupal\Core\Config\Entity\Exception\ConfigEntityStorageClassException File core/lib/Drupal/Core/Config/Entity/Exception/ConfigEntityStorageClassException.php, line 10 Namespace Drupal\Core\Config\Entity\Exception Members

ConfigEntityStorage::__construct

public ConfigEntityStorage::__construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager) Constructs a ConfigEntityStorage object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service. \Drupal\Component\Uuid\UuidInterface $uuid_service: The UUID service. \Drupal\Core\Langua

ConfigEntityStorage::_doCreateFromStorageRecord

protected ConfigEntityStorage::_doCreateFromStorageRecord(array $values, $is_syncing = FALSE) Helps create 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. bool $is_syncing: Is the configuration entity being created as part of a config sync. Return value ConfigEntityInterface The configuration entity. See also \Drupal\Core\Confi

ConfigEntityStorage::updateFromStorageRecord

public ConfigEntityStorage::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. Overrides ConfigEntityStorageInterface::updateFr