public function DefaultController::__construct in Style Switcher 8.2
Same name and namespace in other branches
- 3.0.x 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\ControllerCode
public function __construct(ThemeHandlerInterface $theme_handler, TimeInterface $time) {
$this->themeHandler = $theme_handler;
$this->time = $time;
}