You are here

public function CampaignMonitorListDeleteForm::getCancelUrl in Campaign Monitor 8

Same name and namespace in other branches
  1. 8.2 src/Form/CampaignMonitorListDeleteForm.php \Drupal\campaignmonitor\Form\CampaignMonitorListDeleteForm::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/CampaignMonitorListDeleteForm.php, line 39

Class

CampaignMonitorListDeleteForm
Defines a confirmation form for deleting mymodule data.

Namespace

Drupal\campaignmonitor\Form

Code

public function getCancelUrl() {
  return new Url('campaignmonitor.lists');
}