You are here

protected function QueryFactory::getConfigKeyStore in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php \Drupal\Core\Config\Entity\Query\QueryFactory::getConfigKeyStore()

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.

2 calls to QueryFactory::getConfigKeyStore()
QueryFactory::deleteConfigKeyStore in core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
Deletes lookup data.
QueryFactory::updateConfigKeyStore in core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php
Updates or adds lookup data.

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