public function WebformRouteContext::__construct in Webform 8.5
Same name and namespace in other branches
- 6.x src/ContextProvider/WebformRouteContext.php \Drupal\webform\ContextProvider\WebformRouteContext::__construct()
Constructs a WebformRouteContext.
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\ContextProviderCode
public function __construct(RouteMatchInterface $route_match) {
$this->routeMatch = $route_match;
}