You are here

public function WebformRouteContext::__construct in Webform 6.x

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

Constructs a WebformRouteContext object.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match object.

File

src/ContextProvider/WebformRouteContext.php, line 33

Class

WebformRouteContext
Sets the current webform as a context on webform routes.

Namespace

Drupal\webform\ContextProvider

Code

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