You are here

public function UserEmailChangeCancelForm::getCancelUrl in Email confirmer 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

email_confirmer_user/src/Form/UserEmailChangeCancelForm.php, line 69

Class

UserEmailChangeCancelForm
User pending email change cancellation form.

Namespace

Drupal\email_confirmer_user\Form

Code

public function getCancelUrl() {
  return $this->entity
    ->toUrl('edit-form');
}