function MenuLinkBase::getCacheContexts
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getCacheContexts()
- 8.9.x core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getCacheContexts()
- 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 - LoginLogoutMenuLink::getCacheContexts in core/
modules/ user/ src/ Plugin/ Menu/ LoginLogoutMenuLink.php - MenuLinkMock::getCacheContexts in core/
tests/ Drupal/ Tests/ Core/ Menu/ MenuLinkMock.php
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuLinkBase.php, line 222
Class
- MenuLinkBase
- Defines a base menu link class.
Namespace
Drupal\Core\MenuCode
public function getCacheContexts() {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.