function MenuLinkContent::getTranslateRoute
Overrides MenuLinkBase::getTranslateRoute
File
-
core/
modules/ menu_link_content/ src/ Plugin/ Menu/ MenuLinkContent.php, line 211
Class
- MenuLinkContent
- Provides the menu link plugin for content menu links.
Namespace
Drupal\menu_link_content\Plugin\MenuCode
public function getTranslateRoute() {
$operations = $this->getListBuilderOperations();
return isset($operations['translate']) ? $operations['translate']['url'] : NULL;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.