You are here

function db_and in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/includes/database.inc \db_and()

Returns a new DatabaseCondition, set to "AND" all conditions together.

Return value

\Drupal\Core\Database\Query\Condition A new Condition object, set to "AND" all conditions together.

Deprecated

as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Create a \Drupal\Core\Database\Query\Condition object, specifying an AND conjunction: new Condition('AND');

See also

\Drupal\Core\Database\Query\Condition

Related topics

7 calls to db_and()
ManyToOneHelper::addFilter in core/modules/views/src/ManyToOneHelper.php
Search::query in core/modules/search/src/Plugin/views/filter/Search.php
Add this filter to the query.
Search::query in core/modules/search/src/Plugin/views/argument/Search.php
Set up the query for this argument.
SearchQuery::searchExpression in core/modules/search/src/SearchQuery.php
Sets the search query expression.
Sql::buildCondition in core/modules/views/src/Plugin/views/query/Sql.php
Construct the "WHERE" or "HAVING" part of the query.

... See full list

File

core/includes/database.inc, line 506
Core systems for the database layer.

Code

function db_and() {
  return new Condition('AND');
}