public function WebformSubmissionRouteContext::__construct in Webform 8.5
Same name and namespace in other branches
- 6.x src/ContextProvider/WebformSubmissionRouteContext.php \Drupal\webform\ContextProvider\WebformSubmissionRouteContext::__construct()
Constructs a WebformSubmissionRouteContext.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match object.
File
- src/
ContextProvider/ WebformSubmissionRouteContext.php, line 33
Class
- WebformSubmissionRouteContext
- Sets the current webform submission as a context on webform submission routes.
Namespace
Drupal\webform\ContextProviderCode
public function __construct(RouteMatchInterface $route_match) {
$this->routeMatch = $route_match;
}