public function RequestHashForm::getCancelUrl in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Form/RequestHashForm.php \Drupal\simplenews\Form\RequestHashForm::getCancelUrl()
- 8 src/Form/RequestHashForm.php \Drupal\simplenews\Form\RequestHashForm::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/ RequestHashForm.php, line 45
Class
- RequestHashForm
- Requests a new confirmation if the link has expired.
Namespace
Drupal\simplenews\FormCode
public function getCancelUrl() {
return new Url('simplenews.newsletter_subscriptions');
}