function Select::hasTag

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select::hasTag()
  2. 10 core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select::hasTag()
  3. 11.x core/lib/Drupal/Core/Database/Query/Select.php \Drupal\Core\Database\Query\Select::hasTag()

Determines if a given query has a given tag.

Parameters

$tag: The tag to check.

Return value

TRUE if this query has been marked with this tag, FALSE otherwise.

Overrides AlterableInterface::hasTag

1 call to Select::hasTag()
Select::orderBy in core/lib/Drupal/Core/Database/Driver/pgsql/Select.php
Overrides SelectQuery::orderBy().

File

core/lib/Drupal/Core/Database/Query/Select.php, line 153

Class

Select
Query builder for SELECT statements.

Namespace

Drupal\Core\Database\Query

Code

public function hasTag($tag) {
    return isset($this->alterTags[$tag]);
}

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