function EntityBase::getCacheTags
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getCacheTags()
- 10 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getCacheTags()
- 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getCacheTags()
Overrides CacheableDependencyTrait::getCacheTags
1 call to EntityBase::getCacheTags()
- View::invalidateCaches in core/
modules/ views/ src/ Entity/ View.php - Invalidates cache tags.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 467
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function getCacheTags() {
if ($this->cacheTags) {
return Cache::mergeTags($this->getCacheTagsToInvalidate(), $this->cacheTags);
}
return $this->getCacheTagsToInvalidate();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.