function MenuLinkDefault::getResetRoute

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\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\Menu

Code

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.