function ThemeNegotiator::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Theme/ThemeNegotiator.php \Drupal\Core\Theme\ThemeNegotiator::__construct()
  2. 10 core/lib/Drupal/Core/Theme/ThemeNegotiator.php \Drupal\Core\Theme\ThemeNegotiator::__construct()
  3. 9 core/lib/Drupal/Core/Theme/ThemeNegotiator.php \Drupal\Core\Theme\ThemeNegotiator::__construct()
  4. 8.9.x core/lib/Drupal/Core/Theme/ThemeNegotiator.php \Drupal\Core\Theme\ThemeNegotiator::__construct()

Constructs a new ThemeNegotiator.

Parameters

\Drupal\Core\Theme\ThemeAccessCheck $themeAccess: The access checker for themes.

\Drupal\Core\DependencyInjection\ClassResolverInterface $classResolver: The class resolver.

string[] $negotiators: An array of negotiator IDs.

File

core/lib/Drupal/Core/Theme/ThemeNegotiator.php, line 26

Class

ThemeNegotiator
Provides a class which determines the active theme of the page.

Namespace

Drupal\Core\Theme

Code

public function __construct(protected ThemeAccessCheck $themeAccess, protected ClassResolverInterface $classResolver, protected array $negotiators) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.