public function QueryBase::hasTag in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Query/QueryBase.php \Drupal\Core\Entity\Query\QueryBase::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
File
- core/
lib/ Drupal/ Core/ Entity/ Query/ QueryBase.php, line 348 - Contains \Drupal\Core\Entity\Query\QueryBase.
Class
- QueryBase
- The base entity query class.
Namespace
Drupal\Core\Entity\QueryCode
public function hasTag($tag) {
return isset($this->alterTags[$tag]);
}