protected function MenuListBuilder::ensureDestination in Drupal 10
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 67
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;
}