function FilterCaptionTwigDebugTest::register
Same name in other branches
- 8.9.x core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php \Drupal\Tests\filter\Kernel\FilterCaptionTwigDebugTest::register()
- 10 core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php \Drupal\Tests\filter\Kernel\FilterCaptionTwigDebugTest::register()
- 11.x core/modules/filter/tests/src/Kernel/FilterCaptionTwigDebugTest.php \Drupal\Tests\filter\Kernel\FilterCaptionTwigDebugTest::register()
Overrides KernelTestBase::register
File
-
core/
modules/ filter/ tests/ src/ Kernel/ FilterCaptionTwigDebugTest.php, line 25
Class
- FilterCaptionTwigDebugTest
- Tests the caption filter with Twig debugging on.
Namespace
Drupal\Tests\filter\KernelCode
public function register(ContainerBuilder $container) {
parent::register($container);
// Enable Twig debugging.
$parameters = $container->getParameter('twig.config');
$parameters['debug'] = TRUE;
$container->setParameter('twig.config', $parameters);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.