public function Link::getEditRoute in Colossal Menu 8
Same name and namespace in other branches
- 2.x src/Entity/Link.php \Drupal\colossal_menu\Entity\Link::getEditRoute()
Returns route information for a custom edit form for the menu link.
Plugins should return a value here if they have a special edit form, or if they need to define additional local tasks, local actions, etc. that are visible from the edit form.
Return value
\Drupal\Core\Url|null A Url object, or NULL if there is no route because there is no custom edit route for this instance.
Overrides MenuLinkInterface::getEditRoute
1 call to Link::getEditRoute()
- Link::getTranslateRoute in src/
Entity/ Link.php - Returns route information for a route to translate the menu link.
File
- src/
Entity/ Link.php, line 489
Class
- Link
- Defines the Link entity.
Namespace
Drupal\colossal_menu\EntityCode
public function getEditRoute() {
return Url::fromRoute('entity.colossal_menu_link.edit_form', [
'colossal_menu' => $this
->getMenuName(),
'colossal_menu_link' => $this
->id(),
]);
}