protected function 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());
}

© 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!Query!QueryFactory.php/function/QueryFactory::getConfigKeyStore/8.1.x