public function BookNavigationBlock::getCacheContexts in Drupal 10
Same name and namespace in other branches
- 8 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::getCacheContexts()
- 9 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::getCacheContexts()
File
- core/
modules/ book/ src/ Plugin/ Block/ BookNavigationBlock.php, line 186
Class
- BookNavigationBlock
- Provides a 'Book navigation' block.
Namespace
Drupal\book\Plugin\BlockCode
public function getCacheContexts() {
return Cache::mergeContexts(parent::getCacheContexts(), [
'route.book_navigation',
]);
}