interface EngineInterface in ThemeKey 8
Defines an interface for ThemeKey Engines.
Hierarchy
- interface \Drupal\themekey\EngineInterface
Expanded class hierarchy of EngineInterface
All classes that implement EngineInterface
2 files declare their use of EngineInterface
- Engine.php in src/
Engine/ Engine.php - ThemeKeyNegotiator.php in src/
Theme/ ThemeKeyNegotiator.php
File
- src/
EngineInterface.php, line 15 - Provides Drupal\themekey\Engine\EngineInterface
Namespace
Drupal\themekeyView source
interface EngineInterface {
/**
* Determine the active theme for the request.
*
* @param \Drupal\Core\Routing\RouteMatchInterface $route_match
* The current route match object.
*
* @return string|null
* Returns the active theme name, else return NULL.
*/
public function determineTheme(RouteMatchInterface $route_match);
/**
* @return \Drupal\Core\Routing\RouteMatchInterface
*/
public function getRouteMatch();
/**
* @return \Drupal\Core\Config\ConfigFactoryInterface
*/
public function getConfigFactory();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EngineInterface:: |
public | function | Determine the active theme for the request. | 1 |
EngineInterface:: |
public | function | 1 | |
EngineInterface:: |
public | function | 1 |