You are here

public function LocalActionsBlock::getCacheContexts in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php \Drupal\Core\Menu\Plugin\Block\LocalActionsBlock::getCacheContexts()

Overrides ContextAwarePluginBase::getCacheContexts

File

core/lib/Drupal/Core/Menu/Plugin/Block/LocalActionsBlock.php, line 97
Contains \Drupal\Core\Menu\Plugin\Block\LocalActionsBlock.

Class

LocalActionsBlock
Provides a block to display the local actions.

Namespace

Drupal\Core\Menu\Plugin\Block

Code

public function getCacheContexts() {
  return Cache::mergeContexts(parent::getCacheContexts(), [
    'route',
  ]);
}