You are here

public function PaymentDeleteForm::getCancelUrl in Payment 8.2

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/Entity/Payment/PaymentDeleteForm.php, line 55

Class

PaymentDeleteForm
Provides the payment deletion form.

Namespace

Drupal\payment\Entity\Payment

Code

public function getCancelUrl() {
  return $this
    ->getEntity()
    ->toUrl();
}