function MenuLinkMock::getCacheContexts
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getCacheContexts()
- 10 core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getCacheContexts()
- 11.x core/tests/Drupal/Tests/Core/Menu/MenuLinkMock.php \Drupal\Tests\Core\Menu\MenuLinkMock::getCacheContexts()
Overrides MenuLinkBase::getCacheContexts
1 method overrides MenuLinkMock::getCacheContexts()
- DynamicMenuLinkMock::getCacheContexts in core/
tests/ Drupal/ Tests/ Core/ Menu/ DynamicMenuLinkMock.php - The cache contexts associated with this object.
File
-
core/
tests/ Drupal/ Tests/ Core/ Menu/ MenuLinkMock.php, line 73
Class
- MenuLinkMock
- Defines a mock implementation of a menu link used in tests only.
Namespace
Drupal\Tests\Core\MenuCode
public function getCacheContexts() {
return $this->pluginDefinition['metadata']['cache_contexts'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.