You are here

public function AggregatorFeedBlock::getCacheTags in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php \Drupal\aggregator\Plugin\Block\AggregatorFeedBlock::getCacheTags()

Overrides ContextAwarePluginBase::getCacheTags

File

core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php, line 185
Contains \Drupal\aggregator\Plugin\Block\AggregatorFeedBlock.

Class

AggregatorFeedBlock
Provides an 'Aggregator feed' block with the latest items from the feed.

Namespace

Drupal\aggregator\Plugin\Block

Code

public function getCacheTags() {
  $cache_tags = parent::getCacheTags();
  $feed = $this->feedStorage
    ->load($this->configuration['feed']);
  return Cache::mergeTags($cache_tags, $feed
    ->getCacheTags());
}