You are here

public function MicrositeMenuItemDeleteForm::getCancelUrl in Entity Reference Hierarchy 8.2

Same name and namespace in other branches
  1. 3.x modules/entity_hierarchy_microsite/src/Form/MicrositeMenuItemDeleteForm.php \Drupal\entity_hierarchy_microsite\Form\MicrositeMenuItemDeleteForm::getCancelUrl()

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

Return value

\Drupal\Core\Url A URL object.

Overrides ContentEntityDeleteForm::getCancelUrl

1 call to MicrositeMenuItemDeleteForm::getCancelUrl()
MicrositeMenuItemDeleteForm::getRedirectUrl in modules/entity_hierarchy_microsite/src/Form/MicrositeMenuItemDeleteForm.php
Returns the URL where the user should be redirected after deletion.

File

modules/entity_hierarchy_microsite/src/Form/MicrositeMenuItemDeleteForm.php, line 18

Class

MicrositeMenuItemDeleteForm
Provides a delete form for override menu links.

Namespace

Drupal\entity_hierarchy_microsite\Form

Code

public function getCancelUrl() {
  return new Url('entity.menu.edit_form', [
    'menu' => 'entity-hierarchy-microsite',
  ]);
}