public function ConditionInterface::where

Adds an arbitrary WHERE clause to the query.

Parameters

$snippet: A portion of a WHERE clause as a prepared statement. It must use named placeholders, not ? placeholders.

$args: An associative array of arguments.

Return value

Drupal\Core\Database\Query\ConditionInterface The called object.

6 methods override ConditionInterface::where()
Condition::where in drupal/core/lib/Drupal/Core/Database/Query/Condition.php
Implements Drupal\Core\Database\Query\ConditionInterface::where().
Delete::where in drupal/core/lib/Drupal/Core/Database/Query/Delete.php
Implements Drupal\Core\Database\Query\ConditionInterface::where().
Merge::where in drupal/core/lib/Drupal/Core/Database/Query/Merge.php
Implements Drupal\Core\Database\Query\ConditionInterface::where().
Select::where in drupal/core/lib/Drupal/Core/Database/Query/Select.php
Adds an arbitrary WHERE clause to the query.
SelectExtender::where in drupal/core/lib/Drupal/Core/Database/Query/SelectExtender.php
Adds an arbitrary WHERE clause to the query.

... See full list

File

drupal/core/lib/Drupal/Core/Database/Query/ConditionInterface.php, line 59
Definition of Drupal\Core\Database\Query\ConditionInterface

Class

ConditionInterface
Interface for a conditional clause in a query.

Namespace

Drupal\Core\Database\Query

Code

public function where($snippet, $args = array());