You are here

public function SubscriberDeleteForm::getCancelUrl in Simplenews 8

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

Class

SubscriberDeleteForm
Builds the form to delete a contact category.

Namespace

Drupal\simplenews\Form

Code

public function getCancelUrl() {
  return new Url('view.simplenews_subscribers.page_1');
}