public function SimpleMegaMenuRevisionDeleteForm::getCancelUrl in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x src/Form/SimpleMegaMenuRevisionDeleteForm.php \Drupal\simple_megamenu\Form\SimpleMegaMenuRevisionDeleteForm::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/ SimpleMegaMenuRevisionDeleteForm.php, line 93
Class
- SimpleMegaMenuRevisionDeleteForm
- Provides a form for deleting a Simple mega menu revision.
Namespace
Drupal\simple_megamenu\FormCode
public function getCancelUrl() {
return new Url('entity.simple_mega_menu.version_history', [
'simple_mega_menu' => $this->revision
->id(),
]);
}