You are here

public function ExpenseRevisionRevertForm::getCancelUrl in Drupal PM (Project Management) 4.x

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/pm_expense/src/Form/ExpenseRevisionRevertForm.php, line 68

Class

ExpenseRevisionRevertForm
Provides a form for reverting a Expense revision.

Namespace

Drupal\pm_expense\Form

Code

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