public function QueryInterface::hasTag in Search API 8
Checks whether a certain tag was set on this search query.
Parameters
string $tag: The tag to check for.
Return value
bool TRUE if the tag was set for this search query, FALSE otherwise.
1 method overrides QueryInterface::hasTag()
- Query::hasTag in src/
Query/ Query.php - Checks whether a certain tag was set on this search query.
File
- src/
Query/ QueryInterface.php, line 489
Class
- QueryInterface
- Represents a search query on a Search API index.
Namespace
Drupal\search_api\QueryCode
public function hasTag($tag);