function MenuLinkBase::getTranslateRoute
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getTranslateRoute()
- 8.9.x core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getTranslateRoute()
- 10 core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getTranslateRoute()
Overrides MenuLinkInterface::getTranslateRoute
2 calls to MenuLinkBase::getTranslateRoute()
- MenuLinkBase::getOperations in core/
lib/ Drupal/ Core/ Menu/ MenuLinkBase.php - Provides an array of information to build a list of operation links.
- MenuLinkBase::isTranslatable in core/
lib/ Drupal/ Core/ Menu/ MenuLinkBase.php - Returns whether this link can be translated.
1 method overrides MenuLinkBase::getTranslateRoute()
- MenuLinkContent::getTranslateRoute in core/
modules/ menu_link_content/ src/ Plugin/ Menu/ MenuLinkContent.php - Returns route information for a route to translate the menu link.
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuLinkBase.php, line 166
Class
- MenuLinkBase
- Defines a base menu link class.
Namespace
Drupal\Core\MenuCode
public function getTranslateRoute() {
return NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.