You are here

public function HelpBlock::getCacheContexts in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/help/src/Plugin/Block/HelpBlock.php \Drupal\help\Plugin\Block\HelpBlock::getCacheContexts()

Overrides ContextAwarePluginTrait::getCacheContexts

File

core/modules/help/src/Plugin/Block/HelpBlock.php, line 114

Class

HelpBlock
Provides a 'Help' block.

Namespace

Drupal\help\Plugin\Block

Code

public function getCacheContexts() {
  return Cache::mergeContexts(parent::getCacheContexts(), [
    'route',
  ]);
}