function ForumBlockBase::getCacheContexts
Same name in other branches
- 9 core/modules/forum/src/Plugin/Block/ForumBlockBase.php \Drupal\forum\Plugin\Block\ForumBlockBase::getCacheContexts()
- 10 core/modules/forum/src/Plugin/Block/ForumBlockBase.php \Drupal\forum\Plugin\Block\ForumBlockBase::getCacheContexts()
- 11.x core/modules/forum/src/Plugin/Block/ForumBlockBase.php \Drupal\forum\Plugin\Block\ForumBlockBase::getCacheContexts()
File
-
core/
modules/ forum/ src/ Plugin/ Block/ ForumBlockBase.php, line 85
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',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.