Drupal 8  8.0.2
DefaultNegotiator Class Reference
Inheritance diagram for DefaultNegotiator:

Public Member Functions

 __construct (ConfigFactoryInterface $config_factory)
 
 applies (RouteMatchInterface $route_match)
 
 determineActiveTheme (RouteMatchInterface $route_match)
 

Protected Attributes

 $configFactory
 

Detailed Description

Determines the default theme of the site.

Constructor & Destructor Documentation

__construct ( ConfigFactoryInterface  $config_factory)

Constructs a DefaultNegotiator object.

Parameters
\Drupal\Core\Config\ConfigFactoryInterface$config_factoryThe config factory.

References Drupal\configFactory().

Here is the call graph for this function:

Member Function Documentation

applies ( RouteMatchInterface  $route_match)

{Whether this theme negotiator should be used to set the theme.

Parameters
\Drupal\Core\Routing\RouteMatchInterface$route_matchThe current route match object.
Returns
bool TRUE if this negotiator should be used or FALSE to let other negotiators decide.
}

Implements ThemeNegotiatorInterface.

determineActiveTheme ( RouteMatchInterface  $route_match)

{Determine the active theme for the request.

Parameters
\Drupal\Core\Routing\RouteMatchInterface$route_matchThe current route match object.
Returns
string|null Returns the active theme name, else return NULL.
}

Implements ThemeNegotiatorInterface.

References Drupal\configFactory().

Here is the call graph for this function:


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