You are here

public function ScheduleRevisionDeleteForm::getCancelUrl in Business Rules 2.x

Same name and namespace in other branches
  1. 8 src/Form/ScheduleRevisionDeleteForm.php \Drupal\business_rules\Form\ScheduleRevisionDeleteForm::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/ScheduleRevisionDeleteForm.php, line 82

Class

ScheduleRevisionDeleteForm
Provides a form for deleting a Schedule revision.

Namespace

Drupal\business_rules\Form

Code

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