QueryFactory::__construct

public QueryFactory::__construct() Constructs a QueryFactory object. File core/lib/Drupal/Core/Entity/Query/Null/QueryFactory.php, line 24 Class QueryFactory Provides a factory for creating entity query objects for the null backend. Namespace Drupal\Core\Entity\Query\Null Code public function __construct() { $this->namespaces = QueryBase::getNamespaces($this); }

QueryFactory::__construct

public QueryFactory::__construct(Connection $connection) Constructs a QueryFactory object. Parameters \Drupal\Core\Database\Connection $connection: The database connection used by the entity query. File core/lib/Drupal/Core/Entity/Query/Sql/QueryFactory.php, line 38 Class QueryFactory Factory class creating entity query objects for the SQL backend. Namespace Drupal\Core\Entity\Query\Sql Code public function __construct(Connection $connection) { $this->connection = $connection;

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::getNamesp

QueryFactory::__construct

public QueryFactory::__construct(EntityManagerInterface $entity_manager) Constructs a QueryFactory object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager used by the query. File core/lib/Drupal/Core/Entity/Query/QueryFactory.php, line 37 Class QueryFactory Factory class Creating entity query objects. Namespace Drupal\Core\Entity\Query Code public function __construct(EntityManagerInterface $entity_manager) { $this->entityManager = $entit

QueryFactory::updateConfigKeyStore

protected QueryFactory::updateConfigKeyStore(ConfigEntityTypeInterface $entity_type, Config $config) Updates or adds lookup data. Parameters \Drupal\Core\Config\Entity\ConfigEntityTypeInterface $entity_type: The entity type. \Drupal\Core\Config\Config $config: The configuration object that is being saved. File core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php, line 94 Class QueryFactory Provides a factory for creating entity query objects for the config backend. Namespace Drupa

QueryFactory::onConfigSave

public QueryFactory::onConfigSave(ConfigCrudEvent $event) Updates configuration entity in the key store. Parameters ConfigCrudEvent $event: The configuration event. File core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php, line 225 Class QueryFactory Provides a factory for creating entity query objects for the config backend. Namespace Drupal\Core\Config\Entity\Query Code public function onConfigSave(ConfigCrudEvent $event) { $saved_config = $event->getConfig(); $entity_t

QueryFactory::onConfigDelete

public QueryFactory::onConfigDelete(ConfigCrudEvent $event) Removes configuration entity from key store. Parameters \Drupal\Core\Config\ConfigCrudEvent $event: The configuration event. File core/lib/Drupal/Core/Config/Entity/Query/QueryFactory.php, line 240 Class QueryFactory Provides a factory for creating entity query objects for the config backend. Namespace Drupal\Core\Config\Entity\Query Code public function onConfigDelete(ConfigCrudEvent $event) { $saved_config = $event->ge

QueryFactory::getValues

protected QueryFactory::getValues(Config $config, $key, $get_method, array $parts, $start = 0) Finds all the values for a configuration key in a configuration object. Parameters \Drupal\Core\Config\Config $config: The configuration object. string $key: The current key being checked. string $get_method: Which method on the config object to call to get the value. array $parts: All the parts of a configuration key we are checking. int $start: Which position of $parts we are processing. Defaults t

QueryFactory::getSubscribedEvents

static QueryFactory::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) array('eventNa

QueryFactory::getKeys

protected QueryFactory::getKeys(Config $config, $key, $get_method, ConfigEntityTypeInterface $entity_type) Creates lookup keys for configuration data. Parameters \Drupal\Core\Config\Config $config: The configuration object. @param string $key The configuration key to look for. string $get_method: Which method on the config object to call to get the value. Either 'get' or 'getOriginal'. \Drupal\Core\Config\Entity\ConfigEntityTypeInterface $entity_type: The configuration entity type. Return valu