public function YamlFormResultsClearForm::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 ConfirmFormInterface::getCancelUrl
File
- src/
Form/ YamlFormResultsClearForm.php, line 35
Class
- YamlFormResultsClearForm
- Form for form results clear form.
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);
}