You are here

public function WebformThemeManager::__construct in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformThemeManager.php \Drupal\webform\WebformThemeManager::__construct()

Constructs a WebformThemeManager object.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration object factory.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.

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

\Drupal\Core\Theme\ThemeInitializationInterface $theme_initialization: The theme initialization.

File

src/WebformThemeManager.php, line 85

Class

WebformThemeManager
Defines a class to manage webform theming.

Namespace

Drupal\webform

Code

public function __construct(RouteMatchInterface $route_match, ConfigFactoryInterface $config_factory, RendererInterface $renderer, ThemeManagerInterface $theme_manager, ThemeHandlerInterface $theme_handler, ThemeInitializationInterface $theme_initialization) {
  $this->routeMatch = $route_match;
  $this->configFactory = $config_factory;
  $this->renderer = $renderer;
  $this->themeManager = $theme_manager;
  $this->themeHandler = $theme_handler;
  $this->themeInitialization = $theme_initialization;
}