function ThemeNegotiator::__construct
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Theme/ThemeNegotiator.php \Drupal\Core\Theme\ThemeNegotiator::__construct()
- 10 core/lib/Drupal/Core/Theme/ThemeNegotiator.php \Drupal\Core\Theme\ThemeNegotiator::__construct()
- 11.x core/lib/Drupal/Core/Theme/ThemeNegotiator.php \Drupal\Core\Theme\ThemeNegotiator::__construct()
Constructs a new ThemeNegotiator.
Parameters
\Drupal\Core\Theme\ThemeAccessCheck $theme_access: The access checker for themes.
\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver.
string[] $negotiators: An array of negotiator IDs.
File
-
core/
lib/ Drupal/ Core/ Theme/ ThemeNegotiator.php, line 47
Class
- ThemeNegotiator
- Provides a class which determines the active theme of the page.
Namespace
Drupal\Core\ThemeCode
public function __construct(ThemeAccessCheck $theme_access, ClassResolverInterface $class_resolver, array $negotiators) {
$this->themeAccess = $theme_access;
$this->negotiators = $negotiators;
$this->classResolver = $class_resolver;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.