You are here

public function SubscriptionCancelForm::getCancelUrl in Commerce Recurring Framework 8

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/SubscriptionCancelForm.php, line 53

Class

SubscriptionCancelForm
Provides a confirmation form for cancelling a subscription.

Namespace

Drupal\commerce_recurring\Form

Code

public function getCancelUrl() {
  return new Url('entity.commerce_subscription.edit_form', [
    'commerce_subscription' => $this->entity
      ->id(),
  ]);
}