public function ScheduleRevisionRevertForm::getCancelUrl in Business Rules 8
Same name and namespace in other branches
- 2.x 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(),
]);
}