You are here

public function BookNavigationBlock::getCacheContexts in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::getCacheContexts()

Overrides ContextAwarePluginBase::getCacheContexts

File

core/modules/book/src/Plugin/Block/BookNavigationBlock.php, line 185
Contains \Drupal\book\Plugin\Block\BookNavigationBlock.

Class

BookNavigationBlock
Provides a 'Book navigation' block.

Namespace

Drupal\book\Plugin\Block

Code

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