Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php \Drupal\Core\Cache\RefinableCacheableDependencyTrait::addCacheTags()
- 9 core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php \Drupal\Core\Cache\RefinableCacheableDependencyTrait::addCacheTags()
1 call to RefinableCacheableDependencyTrait::addCacheTags()
- RefinableCacheableDependencyTrait::addCacheableDependency in core/
lib/ Drupal/ Core/ Cache/ RefinableCacheableDependencyTrait.php
File
- core/
lib/ Drupal/ Core/ Cache/ RefinableCacheableDependencyTrait.php, line 41
Class
- RefinableCacheableDependencyTrait
- Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface.
Namespace
Drupal\Core\CacheCode
public function addCacheTags(array $cache_tags) {
if ($cache_tags) {
$this->cacheTags = Cache::mergeTags($this->cacheTags, $cache_tags);
}
return $this;
}