You are here

public function MenuLinkBase::getTranslateRoute in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::getTranslateRoute()

Returns route information for a route to translate the menu link.

Return value

\Drupal\Core\Url|null A Url object, or NULL if there is no route (e.g. when the link is not translatable).

Overrides MenuLinkInterface::getTranslateRoute

1 call to MenuLinkBase::getTranslateRoute()
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 159

Class

MenuLinkBase
Defines a base menu link class.

Namespace

Drupal\Core\Menu

Code

public function getTranslateRoute() {
  return NULL;
}