TwigSandboxTest::$twig

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php \Drupal\Tests\Core\Template\TwigSandboxTest::twig
  2. 8.9.x core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php \Drupal\Tests\Core\Template\TwigSandboxTest::twig
  3. 10 core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php \Drupal\Tests\Core\Template\TwigSandboxTest::twig

The Twig environment loaded with the sandbox extension.

Type: \Twig\Environment

File

core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php, line 30

Class

TwigSandboxTest
Tests the twig sandbox policy.

Namespace

Drupal\Tests\Core\Template

Code

protected $twig;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.