Shortcut::getCacheTagsToInvalidate

public Shortcut::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 Entity::getCacheTagsToInvalidate

See also

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

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

File

core/modules/shortcut/src/Entity/Shortcut.php, line 158

Class

Shortcut
Defines the shortcut entity class.

Namespace

Drupal\shortcut\Entity

Code

public function getCacheTagsToInvalidate() {
  return $this->shortcut_set->entity->getCacheTags();
}
doc_Drupal
2016-10-29 09:42:25
Comments
Leave a Comment

Please login to continue.