You are here

public function PaymentRefundForm::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/PaymentRefundForm.php, line 43

Class

PaymentRefundForm
Provides the payment refund form.

Namespace

Drupal\payment\Entity\Payment

Code

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