function TwigIncludeTest::register
Same name in other branches
- 9 core/modules/system/tests/src/Kernel/Theme/TwigIncludeTest.php \Drupal\Tests\system\Kernel\Theme\TwigIncludeTest::register()
- 11.x core/modules/system/tests/src/Kernel/Theme/TwigIncludeTest.php \Drupal\Tests\system\Kernel\Theme\TwigIncludeTest::register()
Overrides KernelTestBase::register
File
-
core/
modules/ system/ tests/ src/ Kernel/ Theme/ TwigIncludeTest.php, line 139
Class
- TwigIncludeTest
- Tests including files in Twig templates.
Namespace
Drupal\Tests\system\Kernel\ThemeCode
public function register(ContainerBuilder $container) {
parent::register($container);
if (!empty($this->twigConfig)) {
$container->setParameter('twig.config', $this->twigConfig);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.