You are here

public function EmailDeleteForm::getCancelUrl in Courier 8

Same name and namespace in other branches
  1. 2.x src/Form/EmailDeleteForm.php \Drupal\courier\Form\EmailDeleteForm::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/EmailDeleteForm.php, line 27
Contains \Drupal\courier\Form\EmailDeleteForm.

Class

EmailDeleteForm
Form for deleting an email.

Namespace

Drupal\courier\Form

Code

public function getCancelUrl() {
  return $this->entity
    ->urlInfo();
}