function MenuLinkDefault::getResetRoute
Overrides MenuLinkBase::getResetRoute
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuLinkDefault.php, line 87
Class
- MenuLinkDefault
- Provides a default implementation for menu link plugins.
Namespace
Drupal\Core\MenuCode
public function getResetRoute() : Url {
return Url::fromRoute('menu_ui.link_reset', [
'menu_link_plugin' => $this->getPluginId(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.