You are here

public function ConsentAgreementRevisionRevertForm::getCancelUrl in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php \Drupal\gdpr_consent\Form\ConsentAgreementRevisionRevertForm::getCancelUrl()
  2. 8 modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php \Drupal\gdpr_consent\Form\ConsentAgreementRevisionRevertForm::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

modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php, line 82

Class

ConsentAgreementRevisionRevertForm
Provides a form for reverting a Consent Agreement revision.

Namespace

Drupal\gdpr_consent\Form

Code

public function getCancelUrl() {
  return new Url('entity.gdpr_consent_agreement.version_history', [
    'gdpr_consent_agreement' => $this->revision
      ->id(),
  ]);
}