function MenuListBuilder::ensureDestination

Same name and namespace in other branches
  1. 11.x core/modules/menu_ui/src/MenuListBuilder.php \Drupal\menu_ui\MenuListBuilder::ensureDestination()

File

core/modules/menu_ui/src/MenuListBuilder.php, line 67

Class

MenuListBuilder
Defines a class to build a listing of menu entities.

Namespace

Drupal\menu_ui

Code

protected function ensureDestination(Url $url) {
  // We don't want to add the destination URL here, as it means we get
  // redirected back to the list-builder after adding/deleting menu links from
  // a menu.
  return $url;
}

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