function TwigIncludeTest::register
Registers test-specific services.
Extend this method in your test to register additional services. This method is called whenever the kernel is rebuilt.
Parameters
\Drupal\Core\DependencyInjection\ContainerBuilder $container: The service container to enhance.
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.