You are here

public function OptionDeleteForm::getCancelUrl in Ubercart 8.4

Returns the route to go to if the user cancels the action.

Return value

\Drupal\Core\Url A URL object.

Overrides ConfirmFormInterface::getCancelUrl

File

uc_attribute/src/Form/OptionDeleteForm.php, line 36

Class

OptionDeleteForm
Defines the attribute option delete form.

Namespace

Drupal\uc_attribute\Form

Code

public function getCancelUrl() {
  return Url::fromRoute('uc_attribute.options', [
    'aid' => $this->option->aid,
  ]);
}