QueryFactory::getConfigKeyStore

protected QueryFactory::getConfigKeyStore(EntityTypeInterface $entity_type)

Gets the key value store used to store fast lookups.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreInterface The key value store used to store fast lookups.

File

core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php, line 82

Class

QueryFactory
Provides a factory for creating entity query objects for the config backend.

Namespace

Drupal\Core\Config\Entity\Query

Code

protected function getConfigKeyStore(EntityTypeInterface $entity_type) {
  return $this->keyValueFactory->get(static::CONFIG_LOOKUP_PREFIX . $entity_type->id());
}
doc_Drupal
2016-10-29 09:35:53
Comments
Leave a Comment

Please login to continue.