You are here

public function Mp3playerDeleteForm::getCancelUrl in MP3 Player 8

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/Mp3playerDeleteForm.php, line 44
Contains \Drupal\mp3player\Form\ExampleForm.

Class

Mp3playerDeleteForm
Implements Mp3playerDeleteForm.

Namespace

Drupal\mp3player\Form

Code

public function getCancelUrl() {
  return new Url('mp3player.player_list');
}