You are here

public function ConfirmRemovalForm::getCancelUrl in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/ConfirmRemovalForm.php \Drupal\simplenews\Form\ConfirmRemovalForm::getCancelUrl()
  2. 8 src/Form/ConfirmRemovalForm.php \Drupal\simplenews\Form\ConfirmRemovalForm::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/ConfirmRemovalForm.php, line 46

Class

ConfirmRemovalForm
Implements a removal confirmation form for simplenews subscriptions.

Namespace

Drupal\simplenews\Form

Code

public function getCancelUrl() {
  return new Url('simplenews.newsletter_subscriptions');
}