You are here

interface EngineInterface in ThemeKey 8

Defines an interface for ThemeKey Engines.

Hierarchy

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\themekey
View 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

Namesort descending Modifiers Type Description Overrides
EngineInterface::determineTheme public function Determine the active theme for the request. 1
EngineInterface::getConfigFactory public function 1
EngineInterface::getRouteMatch public function 1