Condition::exists

public Condition::exists($field, $langcode = NULL) Queries for the existence of a field. Parameters $field: string $langcode: Return value ConditionInterface Overrides ConditionInterface::exists See also \Drupal\Core\Entity\Query\QueryInterface::exists() File core/lib/Drupal/Core/Entity/Query/Sql/Condition.php, line 62 Class Condition Implements entity query conditions for SQL databases. Namespace Drupal\Core\Entity\Query\Sql Code public function exists($field, $langcode = NULL) {

Condition::exists

public Condition::exists($field, $langcode = NULL) Queries for the existence of a field. Parameters $field: string $langcode: Return value ConditionInterface Overrides ConditionInterface::exists See also \Drupal\Core\Entity\Query\QueryInterface::exists() File core/lib/Drupal/Core/Config/Entity/Query/Condition.php, line 86 Class Condition Defines the condition class for the config entity query. Namespace Drupal\Core\Config\Entity\Query Code public function exists($field, $langcode =

Condition::exists

public Condition::exists($field, $langcode = NULL) Queries for the existence of a field. Parameters $field: string $langcode: Return value ConditionInterface Overrides ConditionInterface::exists See also \Drupal\Core\Entity\Query\QueryInterface::exists() File core/lib/Drupal/Core/Entity/Query/Null/Condition.php, line 21 Class Condition Defines the condition class for the null entity query. Namespace Drupal\Core\Entity\Query\Null Code public function exists($field, $langcode = NULL)

Condition::exists

public Condition::exists(SelectInterface $select) Sets a condition that the specified subquery returns values. Parameters \Drupal\Core\Database\Query\SelectInterface $select: The subquery that must contain results. Return value \Drupal\Core\Database\Query\ConditionInterface The called object. Overrides ConditionInterface::exists File core/lib/Drupal/Core/Database/Query/Condition.php, line 116 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Da

Condition::count

public Condition::count() Implements Countable::count(). Returns the size of this conditional. The size of the conditional is the size of its conditional array minus one, because one element is the conjunction. File core/lib/Drupal/Core/Database/Query/Condition.php, line 59 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code public function count() { return count($this->conditions) - 1; }

Condition::conditions

public &Condition::conditions() Gets a complete list of all conditions in this conditional clause. This method returns by reference. That allows alter hooks to access the data structure directly and manipulate it before it gets compiled. The data structure that is returned is an indexed array of entries, where each entry looks like the following: array( 'field' => $field, 'value' => $value, 'operator' => $operator, ); In the special case that $operator is NULL, the $field i

Condition::conditionGroupFactory

public Condition::conditionGroupFactory($conjunction = 'AND') Creates an object holding a group of conditions. See andConditionGroup() and orConditionGroup() for more. Parameters $conjunction: AND (default): this is the equivalent of andConditionGroup(). OR: this is the equivalent of andConditionGroup(). Return value \Drupal\Core\Database\Query\ConditionInterface An object holding a group of conditions. Overrides ConditionInterface::conditionGroupFactory File core/lib/Drupal/Core/Database

Condition::condition

public Condition::condition($field, $value = NULL, $operator = '=') Helper function: builds the most common conditional clauses. This method can take a variable number of parameters. If called with two parameters, they are taken as $field and $value with $operator having a value of =. Do not use this method to test for NULL values. Instead, use QueryConditionInterface::isNull() or QueryConditionInterface::isNotNull(). Drupal considers LIKE case insensitive and the following is often used to tel

Condition::compiled

public Condition::compiled() Check whether a condition has been previously compiled. Return value TRUE if the condition has been previously compiled. Overrides ConditionInterface::compiled File core/lib/Drupal/Core/Database/Query/Condition.php, line 247 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code public function compiled() { return !$this->changed; }

Condition::compile

public Condition::compile($conditionContainer) Compiles this conditional clause. Parameters $query: The query object this conditional clause belongs to. Overrides ConditionInterface::compile File core/lib/Drupal/Core/Entity/Query/Sql/Condition.php, line 25 Class Condition Implements entity query conditions for SQL databases. Namespace Drupal\Core\Entity\Query\Sql Code public function compile($conditionContainer) { // If this is not the top level condition group then the sql query i