public function ScheduleRevisionRevertForm::getCancelUrl in Business Rules 2.x
Same name and namespace in other branches
- 8 src/Form/ScheduleRevisionRevertForm.php \Drupal\business_rules\Form\ScheduleRevisionRevertForm::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/ ScheduleRevisionRevertForm.php, line 82
Class
- ScheduleRevisionRevertForm
- Provides a form for reverting a Schedule revision.
Namespace
Drupal\business_rules\FormCode
public function getCancelUrl() {
return new Url('entity.business_rules_schedule.version_history', [
'schedule' => $this->revision
->id(),
]);
}