You are here

public function DefaultController::__construct in Style Switcher 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Controller/DefaultController.php \Drupal\styleswitcher\Controller\DefaultController::__construct()

Constructs a new DefaultController.

Parameters

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

\Drupal\Component\Datetime\TimeInterface $time: The DateTime service.

File

src/Controller/DefaultController.php, line 39

Class

DefaultController
Default controller for the styleswitcher module.

Namespace

Drupal\styleswitcher\Controller

Code

public function __construct(ThemeHandlerInterface $theme_handler, TimeInterface $time) {
  $this->themeHandler = $theme_handler;
  $this->time = $time;
}