You are here

public function ShortcutDeleteForm::getCancelUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/shortcut/src/Form/ShortcutDeleteForm.php \Drupal\shortcut\Form\ShortcutDeleteForm::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 ShortcutDeleteForm::getCancelUrl()
ShortcutDeleteForm::getRedirectUrl in core/modules/shortcut/src/Form/ShortcutDeleteForm.php
Returns the URL where the user should be redirected after deletion.

File

core/modules/shortcut/src/Form/ShortcutDeleteForm.php, line 28
Contains \Drupal\shortcut\Form\ShortcutDeleteForm.

Class

ShortcutDeleteForm
Builds the shortcut link deletion form.

Namespace

Drupal\shortcut\Form

Code

public function getCancelUrl() {
  return new Url('entity.shortcut_set.customize_form', array(
    'shortcut_set' => $this->entity
      ->bundle(),
  ));
}