You are here

public function WebformSubmissionRouteContext::__construct in Webform 8.5

Same name and namespace in other branches
  1. 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\ContextProvider

Code

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