function HelpBlock::getCacheContexts

Same name in other branches
  1. 9 core/modules/help/src/Plugin/Block/HelpBlock.php \Drupal\help\Plugin\Block\HelpBlock::getCacheContexts()
  2. 8.9.x core/modules/help/src/Plugin/Block/HelpBlock.php \Drupal\help\Plugin\Block\HelpBlock::getCacheContexts()
  3. 10 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 108

Class

HelpBlock
Provides a 'Help' block.

Namespace

Drupal\help\Plugin\Block

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.