You are here

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

Class

HomeboxLayoutRevisionDeleteForm
Provides a form for deleting 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(),
  ]);
}