public function ConditionGroup::getCacheTags in Entity API 8
The cache tags associated with this object.
When this object is modified, these cache tags will be invalidated.
Return value
string[] A set of cache tags.
Overrides CacheableDependencyTrait::getCacheTags
File
- src/
QueryAccess/ ConditionGroup.php, line 191
Class
- ConditionGroup
- Represents a group of query access conditions.
Namespace
Drupal\entity\QueryAccessCode
public function getCacheTags() {
$tags = $this->cacheTags;
foreach ($this->conditions as $condition) {
if ($condition instanceof ConditionGroup) {
$tags = array_merge($tags, $condition
->getCacheTags());
}
}
return Cache::mergeTags($tags, []);
}