function HelpBlock::getCacheContexts
Same name in other branches
- 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()
- 11.x 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 109
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.