function MenuLinkBase::getCacheContexts

Same name in other branches
  1. 9 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. 11.x core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getCacheContexts()

Overrides CacheableDependencyInterface::getCacheContexts

3 methods override MenuLinkBase::getCacheContexts()
InaccessibleMenuLink::getCacheContexts in core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php
The cache contexts associated with this object.
LoginLogoutMenuLink::getCacheContexts in core/modules/user/src/Plugin/Menu/LoginLogoutMenuLink.php
The cache contexts associated with this object.
MenuLinkMock::getCacheContexts in core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.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.