function MenuLinkContent::getEditRoute

Overrides MenuLinkBase::getEditRoute

File

core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php, line 194

Class

MenuLinkContent
Provides the menu link plugin for content menu links.

Namespace

Drupal\menu_link_content\Plugin\Menu

Code

public function getEditRoute() {
  return $this->getEntity()
    ->toUrl();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.