You are here

public function MenuLinkContent::getTranslateRoute in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php \Drupal\menu_link_content\Plugin\Menu\MenuLinkContent::getTranslateRoute()
  2. 9 core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php \Drupal\menu_link_content\Plugin\Menu\MenuLinkContent::getTranslateRoute()

File

core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php, line 201

Class

MenuLinkContent
Provides the menu link plugin for content menu links.

Namespace

Drupal\menu_link_content\Plugin\Menu

Code

public function getTranslateRoute() {
  return $this
    ->getEntity()
    ->toUrl('drupal:content-translation-overview');
}