public function PhotosImageDeleteForm::getCancelUrl in Album Photos 8.4
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ConfirmFormInterface::getCancelUrl
1 call to PhotosImageDeleteForm::getCancelUrl()
- PhotosImageDeleteForm::submitForm in src/
Form/ PhotosImageDeleteForm.php - Form submission handler.
File
- src/
Form/ PhotosImageDeleteForm.php, line 69
Class
- PhotosImageDeleteForm
- Defines a confirmation form for deleting images.
Namespace
Drupal\photos\FormCode
public function getCancelUrl() {
// @todo check destination?
$url = Url::fromUri('base:photos/image/' . $this->id);
return $url;
}