You are here

public function WorkbenchPreprocess::__construct in Workbench Moderation 8.2

Same name and namespace in other branches
  1. 8 src/WorkbenchPreprocess.php \Drupal\workbench_moderation\WorkbenchPreprocess::__construct()

Constructor.

Parameters

\Drupal\Core\Routing\CurrentRouteMatch $route_match: Current route match service.

File

src/WorkbenchPreprocess.php, line 24

Class

WorkbenchPreprocess
Service to determine whether a route is the "Latest version" tab of a node.

Namespace

Drupal\workbench_moderation

Code

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