You are here

public function ContentTypeRevisionsDeleteForm::getCancelUrl in Node Revision Delete 8

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

1 call to ContentTypeRevisionsDeleteForm::getCancelUrl()
ContentTypeRevisionsDeleteForm::submitForm in src/Form/ContentTypeRevisionsDeleteForm.php
Form submission handler.

File

src/Form/ContentTypeRevisionsDeleteForm.php, line 98

Class

ContentTypeRevisionsDeleteForm
Provides a content type revision deletion confirmation form.

Namespace

Drupal\node_revision_delete\Form

Code

public function getCancelUrl() {
  return new Url('node_revision_delete.admin_settings');
}