You are here

public function HomeboxLayoutRevisionRevertForm::getCancelUrl in Homebox 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

src/Form/HomeboxLayoutRevisionRevertForm.php, line 100

Class

HomeboxLayoutRevisionRevertForm
Provides a form for reverting a Homebox Layout revision.

Namespace

Drupal\homebox\Form

Code

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