You are here

public function EntityBase::getCacheTags in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getCacheTags()
  2. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::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\Entity

Code

public function getCacheTags() {
  if ($this->cacheTags) {
    return Cache::mergeTags($this
      ->getCacheTagsToInvalidate(), $this->cacheTags);
  }
  return $this
    ->getCacheTagsToInvalidate();
}