function MenuListBuilder::ensureDestination
Ensures that a destination is present on the given URL.
Parameters
\Drupal\Core\Url $url: The URL object to which the destination should be added.
Return value
\Drupal\Core\Url The updated URL object.
Overrides EntityListBuilder::ensureDestination
File
- 
              core/
modules/ menu_ui/ src/ MenuListBuilder.php, line 83  
Class
- MenuListBuilder
 - Defines a class to build a listing of menu entities.
 
Namespace
Drupal\menu_uiCode
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.