AdminContext::__construct

public AdminContext::__construct(RouteMatchInterface $route_match)

Construct a new admin context helper instance.

Parameters

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

File

core/lib/Drupal/Core/Routing/AdminContext.php, line 25

Class

AdminContext
Provides a helper class to determine whether the route is an admin one.

Namespace

Drupal\Core\Routing

Code

public function __construct(RouteMatchInterface $route_match) {
  $this->routeMatch = $route_match;
}
doc_Drupal
2016-10-29 08:43:37
Comments
Leave a Comment

Please login to continue.