You are here

public function LibraryItemRevisionDeleteForm::getCancelUrl in Paragraphs 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

modules/paragraphs_library/src/Form/LibraryItemRevisionDeleteForm.php, line 105

Class

LibraryItemRevisionDeleteForm

Namespace

Drupal\paragraphs_library\Form

Code

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