public function WorkbenchPreprocess::__construct in Workbench Moderation 8.2
Same name and namespace in other branches
- 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_moderationCode
public function __construct(CurrentRouteMatch $route_match) {
$this->routeMatch = $route_match;
}