You are here

public function BookNavigationBlock::getCacheMaxAge in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::getCacheMaxAge()
  2. 10 core/modules/book/src/Plugin/Block/BookNavigationBlock.php \Drupal\book\Plugin\Block\BookNavigationBlock::getCacheMaxAge()

@todo Make cacheable in https://www.drupal.org/node/2483181

Overrides ContextAwarePluginTrait::getCacheMaxAge

File

core/modules/book/src/Plugin/Block/BookNavigationBlock.php, line 195

Class

BookNavigationBlock
Provides a 'Book navigation' block.

Namespace

Drupal\book\Plugin\Block

Code

public function getCacheMaxAge() {
  return 0;
}