ShortcutDeleteForm::getCancelUrl

public 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

File

core/modules/shortcut/src/Form/ShortcutDeleteForm.php, line 23

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(),
  ));
}
doc_Drupal
2016-10-29 09:42:32
Comments
Leave a Comment

Please login to continue.