AdminContext
class AdminContext (View source)
Provides a helper class to determine whether the route is an admin one.
Properties
| protected RouteMatchInterface | $routeMatch | The route match. |
Methods
bool
isAdminRoute(Route $route = NULL)
Determines whether the active route is an admin one.
Details
__construct(RouteMatchInterface $route_match)
Construct a new admin context helper instance.
bool
isAdminRoute(Route $route = NULL)
Determines whether the active route is an admin one.