Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MenuLinkBase.php

function MenuLinkBase::getCacheContexts

Overrides CacheableDependencyInterface::getCacheContexts

2 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.

File

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

Class

MenuLinkBase
Defines a base menu link class.

Namespace

Drupal\Core\Menu

Code

public function getCacheContexts() {
    return [];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal