You are here

public function Query::hasAnyTag in Search API 8

Determines whether this query has any of the given tags set on it.

Parameters

string ...: The tags to check for.

Return value

bool TRUE if any of the method parameters was set as a tag on this query; FALSE otherwise.

Overrides QueryInterface::hasAnyTag

File

src/Query/Query.php, line 737

Class

Query
Provides a standard implementation for a Search API query.

Namespace

Drupal\search_api\Query

Code

public function hasAnyTag() {
  return (bool) array_intersect_key(array_flip(func_get_args()), $this->tags);
}