function ViewsTemplateTest::register

Same name in other branches
  1. 10 core/modules/views/tests/src/Kernel/ViewsTemplateTest.php \Drupal\Tests\views\Kernel\ViewsTemplateTest::register()
  2. 11.x core/modules/views/tests/src/Kernel/ViewsTemplateTest.php \Drupal\Tests\views\Kernel\ViewsTemplateTest::register()

Overrides KernelTestBase::register

File

core/modules/views/tests/src/Kernel/ViewsTemplateTest.php, line 25

Class

ViewsTemplateTest
Tests the template retrieval of views.

Namespace

Drupal\Tests\views\Kernel

Code

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.