You are here

public function ViewsExposedFilterBlocksBlock::getCacheMaxAge in Views exposed filter blocks 8

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/ViewsExposedFilterBlocksBlock.php, line 127

Class

ViewsExposedFilterBlocksBlock
Provides a separate views exposed filter block.

Namespace

Drupal\views_exposed_filter_blocks\Plugin\Block

Code

public function getCacheMaxAge() {

  // Prevent the block from cached else the selected options will be cached.
  return 0;
}