function ContentPreprocess::__construct

Same name in other branches
  1. 9 core/modules/content_moderation/src/ContentPreprocess.php \Drupal\content_moderation\ContentPreprocess::__construct()
  2. 8.9.x core/modules/content_moderation/src/ContentPreprocess.php \Drupal\content_moderation\ContentPreprocess::__construct()
  3. 11.x core/modules/content_moderation/src/ContentPreprocess.php \Drupal\content_moderation\ContentPreprocess::__construct()

Constructor.

Parameters

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

File

core/modules/content_moderation/src/ContentPreprocess.php, line 30

Class

ContentPreprocess
Determines whether a route is the "Latest version" tab of a node.

Namespace

Drupal\content_moderation

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.