1 select.inc public SelectQuery::hasAnyTag($tags)

Determines if a given query has any specified tag.

Parameters

string ...$tags: A variable number of arguments, one for each tag to check.

Return value

bool: TRUE if this query has been marked with at least one of the specified tags, FALSE otherwise.

Overrides QueryAlterableInterface::hasAnyTag

File

core/includes/database/select.inc, line 1227
Contains classes and interfaces for Select queries.

Class

SelectQuery
Query builder for SELECT statements.

Code

public function hasAnyTag($tags) {
  return (boolean) array_intersect($tags, array_keys($this->alterTags));
}