public function Item::getCacheTagsToInvalidate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/aggregator/src/Entity/Item.php \Drupal\aggregator\Entity\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()
1 call to Item::getCacheTagsToInvalidate()
- Item::postSave in core/
modules/ aggregator/ src/ Entity/ Item.php - Acts on a saved entity before the insert or update hook is invoked.
File
- core/
modules/ aggregator/ src/ Entity/ Item.php, line 237 - Contains \Drupal\aggregator\Entity\Item.
Class
- Item
- Defines the aggregator item entity class.
Namespace
Drupal\aggregator\EntityCode
public function getCacheTagsToInvalidate() {
return Feed::load($this
->getFeedId())
->getCacheTags();
}