public function Link::getTranslateRoute in Colossal Menu 8
Same name and namespace in other branches
- 2.x src/Entity/Link.php \Drupal\colossal_menu\Entity\Link::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
File
- src/
Entity/ Link.php, line 499
Class
- Link
- Defines the Link entity.
Namespace
Drupal\colossal_menu\EntityCode
public function getTranslateRoute() {
return $this
->getEditRoute();
}