You are here

public function FillPdfFormDuplicateForm::getCancelUrl in FillPDF 8.4

Same name and namespace in other branches
  1. 5.0.x src/Form/FillPdfFormDuplicateForm.php \Drupal\fillpdf\Form\FillPdfFormDuplicateForm::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/FillPdfFormDuplicateForm.php, line 39

Class

FillPdfFormDuplicateForm
Form controller for the FillPdfForm duplicate form.

Namespace

Drupal\fillpdf\Form

Code

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