Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::getCacheTagsToInvalidate()
  2. 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::getCacheTagsToInvalidate()

Returns the cache tags that should be used to invalidate caches.

This will not return additional cache tags added through addCacheTags().

Return value

string[] Set of cache tags.

See also

\Drupal\Core\Cache\RefinableCacheableDependencyInterface::addCacheTags()

\Drupal\Core\Cache\CacheableDependencyInterface::getCacheTags()

1 call to EntityInterface::getCacheTagsToInvalidate()
File::invalidateTagsOnSave in core/modules/file/src/Entity/File.php
3 methods override EntityInterface::getCacheTagsToInvalidate()
EntityBase::getCacheTagsToInvalidate in core/lib/Drupal/Core/Entity/EntityBase.php
Returns the cache tags that should be used to invalidate caches.
PathAlias::getCacheTagsToInvalidate in core/modules/path_alias/src/Entity/PathAlias.php
Returns the cache tags that should be used to invalidate caches.
Shortcut::getCacheTagsToInvalidate in core/modules/shortcut/src/Entity/Shortcut.php
Returns the cache tags that should be used to invalidate caches.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 377

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function getCacheTagsToInvalidate();