You are here

public function Delete::getCancelUrl in SimpleAds 8

Same name in this branch
  1. 8 src/Form/Groups/Delete.php \Drupal\simpleads\Form\Groups\Delete::getCancelUrl()
  2. 8 src/Form/Ads/Delete.php \Drupal\simpleads\Form\Ads\Delete::getCancelUrl()
  3. 8 src/Form/Campaigns/Delete.php \Drupal\simpleads\Form\Campaigns\Delete::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/Campaigns/Delete.php, line 34

Class

Delete
Delete advertisement campaign form.

Namespace

Drupal\simpleads\Form\Campaigns

Code

public function getCancelUrl() {
  return new Url('simpleads.campaigns');
}