public function PathAlias::getCacheTagsToInvalidate in Drupal 9
Same name and namespace in other branches
- 8 core/modules/path_alias/src/Entity/PathAlias.php \Drupal\path_alias\Entity\PathAlias::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.
Overrides EntityBase::getCacheTagsToInvalidate
See also
\Drupal\Core\Cache\RefinableCacheableDependencyInterface::addCacheTags()
\Drupal\Core\Cache\CacheableDependencyInterface::getCacheTags()
File
- core/
modules/ path_alias/ src/ Entity/ PathAlias.php, line 168
Class
- PathAlias
- Defines the path_alias entity class.
Namespace
Drupal\path_alias\EntityCode
public function getCacheTagsToInvalidate() {
return [
'route_match',
];
}