public function ConfirmAddForm::getCancelUrl in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Form/ConfirmAddForm.php \Drupal\simplenews\Form\ConfirmAddForm::getCancelUrl()
- 3.x src/Form/ConfirmAddForm.php \Drupal\simplenews\Form\ConfirmAddForm::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/ ConfirmAddForm.php, line 46
Class
- ConfirmAddForm
- Implements a add confirmation form for simplenews subscriptions.
Namespace
Drupal\simplenews\FormCode
public function getCancelUrl() {
return new Url('simplenews.newsletter_subscriptions');
}