You are here

public function ThemeAccessCheck::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Theme/ThemeAccessCheck.php \Drupal\Core\Theme\ThemeAccessCheck::__construct()

Constructs a \Drupal\Core\Theme\Registry object.

Parameters

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

File

core/lib/Drupal/Core/Theme/ThemeAccessCheck.php, line 32
Contains \Drupal\Core\Theme\ThemeAccessCheck.

Class

ThemeAccessCheck
Provides access checking for themes for routing and theme negotiation.

Namespace

Drupal\Core\Theme

Code

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