You are here

public function WebformSubmissionsPurgeForm::getCancelUrl in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Form/WebformSubmissionsPurgeForm.php \Drupal\webform\Form\WebformSubmissionsPurgeForm::getCancelUrl()

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/WebformSubmissionsPurgeForm.php, line 111

Class

WebformSubmissionsPurgeForm
Webform for webform submission purge webform.

Namespace

Drupal\webform\Form

Code

public function getCancelUrl() {
  return new Url('entity.webform_submission.collection');
}