public function WebformRequest::getCurrentWebformSubmissionUrl in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformRequest.php \Drupal\webform\WebformRequest::getCurrentWebformSubmissionUrl()
Get the URL for the current webform submission and source entity.
Parameters
string $route_name: The route name.
array $route_options: The route options.
Return value
\Drupal\Core\Url The URL for a form/submission and source entity.
Overrides WebformRequestInterface::getCurrentWebformSubmissionUrl
File
- src/
WebformRequest.php, line 192
Class
- WebformRequest
- Handles webform requests.
Namespace
Drupal\webformCode
public function getCurrentWebformSubmissionUrl($route_name, array $route_options = []) {
$webform_entity = $this
->getCurrentWebformSubmission();
$source_entity = $this
->getCurrentSourceEntity();
return $this
->getUrl($webform_entity, $source_entity, $route_name, $route_options);
}