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