public function YamlFormSubmissionDeleteForm::getCancelUrl in YAML Form 8
Returns the route to go to if the user cancels the action.
Return value
\Drupal\Core\Url A URL object.
Overrides ContentEntityDeleteForm::getCancelUrl
1 call to YamlFormSubmissionDeleteForm::getCancelUrl()
- YamlFormSubmissionDeleteForm::getRedirectUrl in src/
Form/ YamlFormSubmissionDeleteForm.php - Returns the URL where the user should be redirected after deletion.
File
- src/
Form/ YamlFormSubmissionDeleteForm.php, line 95
Class
- YamlFormSubmissionDeleteForm
- Provides a confirmation form for deleting a form submission.
Namespace
Drupal\yamlform\FormCode
public function getCancelUrl() {
$route_name = $this->requestHandler
->getRouteName($this->yamlform, $this->sourceEntity, 'yamlform.results_submissions');
$route_parameters = $this->requestHandler
->getRouteParameters($this->yamlform, $this->sourceEntity);
return new Url($route_name, $route_parameters);
}