You are here

public function TwigDebugTrait::enableTwigDebugMode in UI Patterns 8

Enable Twig debug mode.

5 calls to TwigDebugTrait::enableTwigDebugMode()
UiPatternsFieldGroupRenderTest::testUiPatternsFieldGroupRendering in modules/ui_patterns_field_group/tests/src/FunctionalJavascript/UiPatternsFieldGroupRenderTest.php
Test that pattern field group settings are correctly saved.
UiPatternsFieldRenderTest::testUiPatternsFieldRendering in modules/ui_patterns_ds/tests/src/FunctionalJavascript/UiPatternsFieldRenderTest.php
Tests field template settings.
UiPatternsLayoutsRenderTest::testUiPatternsLayoutsRendering in modules/ui_patterns_layouts/tests/src/FunctionalJavascript/UiPatternsLayoutsRenderTest.php
Tests field template settings.
UiPatternsPreviewRenderTest::testPatternPreviewSuggestions in tests/src/Functional/UiPatternsPreviewRenderTest.php
Tests pattern preview suggestions.
UiPatternsViewsRenderTest::testUiPatternsViewsRendering in modules/ui_patterns_views/tests/src/FunctionalJavascript/UiPatternsViewsRenderTest.php
Test that pattern field group settings are correctly saved.

File

tests/src/Traits/TwigDebugTrait.php, line 13

Class

TwigDebugTrait
Provides shortcut to enable Twig debug mode on \Drupal\Tests\BrowserTestBase.

Namespace

Drupal\Tests\ui_patterns\Traits

Code

public function enableTwigDebugMode() {

  // Enable debug, rebuild the service container, and clear all caches.
  $parameters = $this->container
    ->getParameter('twig.config');
  $parameters['debug'] = TRUE;
  $this
    ->setContainerParameter('twig.config', $parameters);
  $this
    ->rebuildContainer();
  $this
    ->resetAll();
}