You are here

public function WebformSubmissionRouteContext::__construct in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/ContextProvider/WebformSubmissionRouteContext.php \Drupal\webform\ContextProvider\WebformSubmissionRouteContext::__construct()

Constructs a WebformSubmissionRouteContext object.

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\ContextProvider

Code

public function __construct(RouteMatchInterface $route_match) {
  $this->routeMatch = $route_match;
}