public function FileDeleteForm::getCancelUrl in File Delete (D8/D9) 8
Same name and namespace in other branches
- 2.1.x src/Form/FileDeleteForm.php \Drupal\file_delete\Form\FileDeleteForm::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/ FileDeleteForm.php, line 67
Class
- FileDeleteForm
- Provides a form for deleting a File.
Namespace
Drupal\file_delete\FormCode
public function getCancelUrl() {
return new Url('view.files.page_1');
}