Drupal 8  8.0.2
AdminContext Class Reference

Public Member Functions

 __construct (RouteMatchInterface $route_match)
 
 isAdminRoute (Route $route=NULL)
 

Protected Attributes

 $routeMatch
 

Detailed Description

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

Constructor & Destructor Documentation

__construct ( RouteMatchInterface  $route_match)

Construct a new admin context helper instance.

Parameters
\Drupal\Core\Routing\RouteMatchInterface$route_matchThe route match.

References Drupal\routeMatch().

Here is the call graph for this function:

Member Function Documentation

isAdminRoute ( Route  $route = NULL)

Determines whether the active route is an admin one.

Parameters
\Symfony\Component\Routing\Route$route(optional) The route to determine whether it is an admin one. Per default this falls back to the route object on the active request.
Returns
bool Returns TRUE if the route is an admin one, otherwise FALSE.

References Drupal\routeMatch().

Here is the call graph for this function:


The documentation for this class was generated from the following file: