Query::execute

public Query::execute() Execute the query. Return value int|array Returns an integer for count queries or an array of ids. The values of the array are always entity ids. The keys will be revision ids if the entity supports revision and entity ids if not. Overrides QueryInterface::execute File core/lib/Drupal/Core/Config/Entity/Query/Query.php, line 80 Class Query Defines the entity query for configuration entities. Namespace Drupal\Core\Config\Entity\Query Code public function execute

Query::execute

public Query::execute() Execute the query. Return value int|array Returns an integer for count queries or an array of ids. The values of the array are always entity ids. The keys will be revision ids if the entity supports revision and entity ids if not. Overrides QueryInterface::execute File core/lib/Drupal/Core/Entity/KeyValueStore/Query/Query.php, line 42 Class Query Defines the entity query for entities stored in a key value backend. Namespace Drupal\Core\Entity\KeyValueStore\Query

Query::execute

public Query::execute() Execute the query. Return value int|array Returns an integer for count queries or an array of ids. The values of the array are always entity ids. The keys will be revision ids if the entity supports revision and entity ids if not. Overrides QueryInterface::execute File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 71 Class Query The SQL storage entity query class. Namespace Drupal\Core\Entity\Query\Sql Code public function execute() { return $this -

Query::execute

public Query::execute() Execute the query. Return value int|array Returns an integer for count queries or an array of ids. The values of the array are always entity ids. The keys will be revision ids if the entity supports revision and entity ids if not. Overrides QueryInterface::execute File core/lib/Drupal/Core/Entity/Query/Null/Query.php, line 18 Class Query Defines the entity query for configuration entities. Namespace Drupal\Core\Entity\Query\Null Code public function execute() {

Query::execute

abstract protected Query::execute() Runs the query against the database. Return value \Drupal\Core\Database\StatementInterface|null A prepared statement, or NULL if the query is not valid. File core/lib/Drupal/Core/Database/Query/Query.php, line 108 Class Query Base class for query builders. Namespace Drupal\Core\Database\Query Code abstract protected function execute();

Query::conditionAggregateGroupFactory

public Query::conditionAggregateGroupFactory($conjunction = 'AND') Creates an object holding a group of conditions. See andConditionAggregateGroup() and orConditionAggregateGroup() for more. Parameters string $conjunction: AND (default): this is the equivalent of andConditionAggregateGroup(). OR: this is the equivalent of andConditionAggregateGroup(). Return value ConditionInterface An object holding a group of conditions. Overrides QueryAggregateInterface::conditionAggregateGroupFactory

Query::condition

public Query::condition($property, $value = NULL, $operator = NULL, $langcode = NULL) Overrides \Drupal\Core\Entity\Query\QueryBase::condition(). Additional to the syntax defined in the QueryInterface you can use placeholders (*) to match all keys of an subarray. Let's take the follow yaml file as example: level1: level2a: level3: 1 level2b: level3: 2 Then you can filter out via $query->condition('level1.*.level3', 1). Overrides QueryBase::condition File core/lib/Drupal/Co

Query::compile

protected Query::compile() Compiles the conditions. Return value \Drupal\Core\Entity\Query\Sql\Query Returns the called object. File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 154 Class Query The SQL storage entity query class. Namespace Drupal\Core\Entity\Query\Sql Code protected function compile() { $this->condition->compile($this->sqlQuery); return $this; }

Query::comment

public Query::comment($comment) Adds a comment to the query. By adding a comment to a query, you can more easily find it in your query log or the list of active queries on an SQL server. This allows for easier debugging and allows you to more easily find where a query with a performance problem is being generated. The comment string will be sanitized to remove * / and other characters that may terminate the string early so as to avoid SQL injection attacks. Parameters $comment: The comment str

Query::addSort

protected Query::addSort() Adds the sort to the build query. Return value \Drupal\Core\Entity\Query\Sql\Query Returns the called object. File core/lib/Drupal/Core/Entity/Query/Sql/Query.php, line 165 Class Query The SQL storage entity query class. Namespace Drupal\Core\Entity\Query\Sql Code protected function addSort() { if ($this->count) { $this->sort = array(); } // Gather the SQL field aliases first to make sure every field table // necessary is added. This might