public function MenuLinkConfig::getEditRoute in Config menu link 8
@todo This could be moved upstream, as it is generic.
Overrides MenuLinkContent::getEditRoute
File
- src/
Plugin/ Menu/ MenuLinkConfig.php, line 130 - Contains \Drupal\menu_link_config\Plugin\Menu\MenuLinkConfig.
Class
- MenuLinkConfig
- Provides a menu link plugin based upon storage in config.
Namespace
Drupal\menu_link_config\Plugin\MenuCode
public function getEditRoute() {
return $this
->getEntity()
->toUrl('edit-form');
}