Item::getCacheTagsToInvalidate

public Item::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/aggregator/src/Entity/Item.php, line 231

Class

Item
Defines the aggregator item entity class.

Namespace

Drupal\aggregator\Entity

Code

public function getCacheTagsToInvalidate() {
  return Feed::load($this->getFeedId())->getCacheTags();
}
doc_Drupal
2016-10-29 09:21:14
Comments
Leave a Comment

Please login to continue.