function TwigIncludeTest::register

Same name in other branches
  1. 9 core/modules/system/tests/src/Kernel/Theme/TwigIncludeTest.php \Drupal\Tests\system\Kernel\Theme\TwigIncludeTest::register()
  2. 10 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\Theme

Code

public function register(ContainerBuilder $container) : void {
    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.