You are here

public function MenuDeleteItem::getCancelUrl in Menu Delete 8

Same name and namespace in other branches
  1. 8.2 src/Form/MenuDeleteItem.php \Drupal\menu_delete\Form\MenuDeleteItem::getCancelUrl()

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

src/Form/MenuDeleteItem.php, line 86

Class

MenuDeleteItem
Class MenuDeleteItem.

Namespace

Drupal\menu_delete\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('entity.menu.edit_form', array(
    'menu' => $this->menuId,
  ));
}