public function 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\RoutingCode
public function __construct(RouteMatchInterface $route_match) { $this->routeMatch = $route_match; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!AdminContext.php/function/AdminContext::__construct/8.1.x