You are here

public function NewsletterDeleteForm::getCancelUrl in Simplenews 8.2

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

Class

NewsletterDeleteForm
Builds the form to delete a contact category.

Namespace

Drupal\simplenews\Form

Code

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