function MenuLinkBase::getCacheContexts

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getCacheContexts()
  2. 10 core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getCacheContexts()
  3. 8.9.x core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getCacheContexts()
1 method overrides MenuLinkBase::getCacheContexts()
InaccessibleMenuLink::getCacheContexts in core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php
The cache contexts associated with this object.

File

core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 180

Class

MenuLinkBase
Defines a base menu link class.

Namespace

Drupal\Core\Menu

Code

public function getCacheContexts() {
  return [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.