public function ForumBlockBase::getCacheContexts in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/forum/src/Plugin/Block/ForumBlockBase.php \Drupal\forum\Plugin\Block\ForumBlockBase::getCacheContexts()
Overrides ContextAwarePluginBase::getCacheContexts
File
- core/
modules/ forum/ src/ Plugin/ Block/ ForumBlockBase.php, line 90 - Contains \Drupal\forum\Plugin\Block\ForumBlockBase.
Class
- ForumBlockBase
- Provides a base class for Forum blocks.
Namespace
Drupal\forum\Plugin\BlockCode
public function getCacheContexts() {
return Cache::mergeContexts(parent::getCacheContexts(), [
'user.node_grants:view',
]);
}