function AdminContext::__construct
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Routing/AdminContext.php \Drupal\Core\Routing\AdminContext::__construct()
- 10 core/lib/Drupal/Core/Routing/AdminContext.php \Drupal\Core\Routing\AdminContext::__construct()
- 11.x core/lib/Drupal/Core/Routing/AdminContext.php \Drupal\Core\Routing\AdminContext::__construct()
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\RoutingCode
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.