function ViewsExposedFilterBlock::getCacheContexts
Overrides ContextAwarePluginTrait::getCacheContexts
File
-
core/
modules/ views/ src/ Plugin/ Block/ ViewsExposedFilterBlock.php, line 24
Class
- ViewsExposedFilterBlock
- Provides a 'Views Exposed Filter' block.
Namespace
Drupal\views\Plugin\BlockCode
public function getCacheContexts() {
$contexts = $this->view->display_handler
->getCacheMetadata()
->getCacheContexts();
return Cache::mergeContexts(parent::getCacheContexts(), $contexts);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.