function TwigDebugMarkupTest::enableTwigDebug
Enable debug, rebuild the service container, and clear all caches.
2 calls to TwigDebugMarkupTest::enableTwigDebug()
- TwigDebugMarkupTest::testTwigDebugMarkup in core/
modules/ system/ tests/ src/ Functional/ Theme/ TwigDebugMarkupTest.php - Tests debug markup added to Twig template output.
- TwigDebugMarkupTest::testTwigDebugMarkupDomParity in core/
modules/ system/ tests/ src/ Functional/ Theme/ TwigDebugMarkupTest.php - Tests that the debug markup does not significantly alter the DOM.
File
-
core/
modules/ system/ tests/ src/ Functional/ Theme/ TwigDebugMarkupTest.php, line 42
Class
- TwigDebugMarkupTest
- Tests for Twig debug markup.
Namespace
Drupal\Tests\system\Functional\ThemeCode
protected function enableTwigDebug() : void {
$parameters = $this->container
->getParameter('twig.config');
$parameters['debug'] = TRUE;
$this->setContainerParameter('twig.config', $parameters);
$this->rebuildContainer();
$this->resetAll();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.