You are here

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

Class

LibraryItemRevisionRevertForm

Namespace

Drupal\paragraphs_library\Form

Code

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