You are here

public function HtaccessConfirmForm::getCancelUrl in Htaccess 8.2

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/HtaccessConfirmForm.php, line 61
Administration pages.

Class

HtaccessConfirmForm
Defines a form to confirm Htaccess deployment or deletion

Namespace

Drupal\htaccess\Form

Code

public function getCancelUrl() {

  //this needs to be a valid route otherwise the cancel link won't appear
  return new Url('htaccess.admin_deployment');
}