public function QueryFactory::__construct

public QueryFactory::__construct(KeyValueFactoryInterface $key_value_factory)

Constructs a QueryFactory object.

File

core/lib/Drupal/Core/Entity/KeyValueStore/Query/QueryFactory.php, line 32

Class

QueryFactory
Provides a factory for creating the key value entity query.

Namespace

Drupal\Core\Entity\KeyValueStore\Query

Code

public function __construct(KeyValueFactoryInterface $key_value_factory) {
  $this->keyValueFactory = $key_value_factory;
  $this->namespaces = Query::getNamespaces($this);
}

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