Same name and namespace in other branches
  1. 8.9.x core/modules/forum/src/Plugin/Block/ForumBlockBase.php \Drupal\forum\Plugin\Block\ForumBlockBase::getCacheTags()
  2. 9 core/modules/forum/src/Plugin/Block/ForumBlockBase.php \Drupal\forum\Plugin\Block\ForumBlockBase::getCacheTags()

Overrides ContextAwarePluginTrait::getCacheTags

File

core/modules/forum/src/Plugin/Block/ForumBlockBase.php, line 92

Class

ForumBlockBase
Provides a base class for Forum blocks.

Namespace

Drupal\forum\Plugin\Block

Code

public function getCacheTags() {
  return Cache::mergeTags(parent::getCacheTags(), [
    'node_list',
  ]);
}