public function AggregatorFeedBlock::getCacheTags in Drupal 8
Same name and namespace in other branches
- 9 core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php \Drupal\aggregator\Plugin\Block\AggregatorFeedBlock::getCacheTags()
The cache tags associated with this object.
When this object is modified, these cache tags will be invalidated.
Return value
string[] A set of cache tags.
Overrides ContextAwarePluginBase::getCacheTags
File
- core/
modules/ aggregator/ src/ Plugin/ Block/ AggregatorFeedBlock.php, line 166
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;
}