You are here

public function PresetDeleteForm::getCancelUrl in Video 8.2

Gets the cancel URL.

Provides the URL to go to if the user cancels the action. For entity delete forms, this is typically the route that points at the list controller.

Return value

\Drupal\Core\Url The URL to go to if the user cancels the deletion.

Overrides ConfirmFormInterface::getCancelUrl

1 call to PresetDeleteForm::getCancelUrl()
PresetDeleteForm::submitForm in modules/video_transcode/src/Form/PresetDeleteForm.php
The submit handler for the confirm form.

File

modules/video_transcode/src/Form/PresetDeleteForm.php, line 63

Class

PresetDeleteForm
Class PresetDeleteForm.

Namespace

Drupal\video_transcode\Form

Code

public function getCancelUrl() {
  return new Url('entity.video_transcode_preset.list');
}