function AggregatorFeedBlock::getCacheTags
Overrides ContextAwarePluginTrait::getCacheTags
File
-
core/
modules/ aggregator/ src/ Plugin/ Block/ AggregatorFeedBlock.php, line 168
Class
- AggregatorFeedBlock
- Provides an 'Aggregator feed' block with the latest items from the feed.
Namespace
Drupal\aggregator\Plugin\BlockCode
public function getCacheTags() {
$cache_tags = parent::getCacheTags();
if ($feed = $this->feedStorage
->load($this->configuration['feed'])) {
$cache_tags = Cache::mergeTags($cache_tags, $feed->getCacheTags());
}
return $cache_tags;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.