You are here

public function Select::hasTag in Drupal 8

Same name and namespace in other branches
  1. 9 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]);
}