function SelectExtender::addTag

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::addTag()
  2. 10 core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::addTag()
  3. 11.x core/lib/Drupal/Core/Database/Query/SelectExtender.php \Drupal\Core\Database\Query\SelectExtender::addTag()

Overrides AlterableInterface::addTag

3 calls to SelectExtender::addTag()
PagerSelectExtender::__construct in core/lib/Drupal/Core/Database/Query/PagerSelectExtender.php
Constructs a PagerSelectExtender object.
SearchQuery::searchExpression in core/modules/search/src/SearchQuery.php
Sets the search query expression.
TableSortExtender::__construct in core/lib/Drupal/Core/Database/Query/TableSortExtender.php

File

core/lib/Drupal/Core/Database/Query/SelectExtender.php, line 63

Class

SelectExtender
The base extender class for Select queries.

Namespace

Drupal\Core\Database\Query

Code

public function addTag($tag) {
    $this->query
        ->addTag($tag);
    return $this;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.