You are here

public function MediaRevisionDeleteForm::getCancelUrl in Media Revisions UI 8

Same name and namespace in other branches
  1. 2.0.x src/Form/MediaRevisionDeleteForm.php \Drupal\media_revisions_ui\Form\MediaRevisionDeleteForm::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/MediaRevisionDeleteForm.php, line 84

Class

MediaRevisionDeleteForm
Provides a form for reverting media revision.

Namespace

Drupal\media_revisions_ui\Form

Code

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