You are here

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

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

Constructs a new Controller.

Parameters

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

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

File

tests/modules/styleswitcher_test_legacy_cookies/src/Controller/Controller.php, line 37

Class

Controller
Returns responses for Style Switcher Test Legacy Cookies routes.

Namespace

Drupal\styleswitcher_test_legacy_cookies\Controller

Code

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