You are here

public function ConditionInterface::where in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Database/Query/ConditionInterface.php \Drupal\Core\Database\Query\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.

2 methods override ConditionInterface::where()
Condition::where in core/lib/Drupal/Core/Database/Query/Condition.php
Adds an arbitrary WHERE clause to the query.
SelectExtender::where in core/lib/Drupal/Core/Database/Query/SelectExtender.php
Adds an arbitrary WHERE clause to the query.

File

core/lib/Drupal/Core/Database/Query/ConditionInterface.php, line 71
Contains \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());