You are here

public function BookNavigationBlock::getCacheContexts in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::getCacheContexts()
  2. 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\Block

Code

public function getCacheContexts() {
  return Cache::mergeContexts(parent::getCacheContexts(), [
    'route.book_navigation',
  ]);
}