You are here

public function CourseNavigationBlock::getCacheMaxAge in Course 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Block/CourseNavigationBlock.php \Drupal\course\Plugin\Block\CourseNavigationBlock::getCacheMaxAge()
  2. 3.x src/Plugin/Block/CourseNavigationBlock.php \Drupal\course\Plugin\Block\CourseNavigationBlock::getCacheMaxAge()

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

Overrides ContextAwarePluginBase::getCacheMaxAge

File

src/Plugin/Block/CourseNavigationBlock.php, line 23

Class

CourseNavigationBlock
Provides a course navigation block.

Namespace

Drupal\course\Plugin\Block

Code

public function getCacheMaxAge() {
  return 0;
}