function ThemeNegotiatorTest::createThemeNegotiator
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php \Drupal\Tests\Core\Theme\ThemeNegotiatorTest::createThemeNegotiator()
- 8.9.x core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php \Drupal\Tests\Core\Theme\ThemeNegotiatorTest::createThemeNegotiator()
- 10 core/tests/Drupal/Tests/Core/Theme/ThemeNegotiatorTest.php \Drupal\Tests\Core\Theme\ThemeNegotiatorTest::createThemeNegotiator()
Creates a new theme negotiator instance.
Parameters
array $negotiators: An array of negotiator IDs.
Return value
\Drupal\Core\Theme\ThemeNegotiator
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ ThemeNegotiatorTest.php, line 222
Class
- ThemeNegotiatorTest
- @coversDefaultClass \Drupal\Core\Theme\ThemeNegotiator @group Theme
Namespace
Drupal\Tests\Core\ThemeCode
protected function createThemeNegotiator(array $negotiators) {
$resolver = new ClassResolver($this->container);
$theme_negotiator = new ThemeNegotiator($this->themeAccessCheck, $resolver, $negotiators);
return $theme_negotiator;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.