function ViewsBlockBase::getCacheContexts
Overrides ContextAwarePluginTrait::getCacheContexts
1 method overrides ViewsBlockBase::getCacheContexts()
- ViewsExposedFilterBlock::getCacheContexts in core/modules/ views/ src/ Plugin/ Block/ ViewsExposedFilterBlock.php 
File
- 
              core/modules/ views/ src/ Plugin/ Block/ ViewsBlockBase.php, line 93 
Class
- ViewsBlockBase
- Base class for Views block plugins.
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.
