You are here

public function HelpBlock::getCacheContexts in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/help/src/Plugin/Block/HelpBlock.php \Drupal\help\Plugin\Block\HelpBlock::getCacheContexts()

Overrides ContextAwarePluginBase::getCacheContexts

File

core/modules/help/src/Plugin/Block/HelpBlock.php, line 121
Contains \Drupal\help\Plugin\Block\HelpBlock.

Class

HelpBlock
Provides a 'Help' block.

Namespace

Drupal\help\Plugin\Block

Code

public function getCacheContexts() {

  // The "Help" block must be cached per URL: help is defined for a
  // given path, and does not come with any access restrictions.
  return Cache::mergeContexts(parent::getCacheContexts(), [
    'url',
  ]);
}