function BookNavigationBlock::getCacheContexts
Same name in other branches
- 9 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::getCacheContexts()
- 8.9.x core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::getCacheContexts()
- 10 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::getCacheContexts()
Overrides ContextAwarePluginTrait::getCacheContexts
File
-
core/
modules/ book/ src/ Plugin/ Block/ BookNavigationBlock.php, line 187
Class
- BookNavigationBlock
- Provides a 'Book navigation' block.
Namespace
Drupal\book\Plugin\BlockCode
public function getCacheContexts() {
return Cache::mergeContexts(parent::getCacheContexts(), [
'route.book_navigation',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.