You are here

public function PollDeleteForm::getCancelUrl in Poll 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/PollDeleteForm.php, line 31

Class

PollDeleteForm
Provides a form for deleting a poll.

Namespace

Drupal\poll\Form

Code

public function getCancelUrl() {
  return new Url('poll.poll_list');
}