function TwigExtensionTestString::__construct

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php \Drupal\Tests\Core\Template\TwigExtensionTestString::__construct()
  2. 8.9.x core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php \Drupal\Tests\Core\Template\TwigExtensionTestString::__construct()
  3. 11.x core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php \Drupal\Tests\Core\Template\TwigExtensionTestString::__construct()

File

core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php, line 682

Class

TwigExtensionTestString

Namespace

Drupal\Tests\Core\Template

Code

public function __construct($string) {
    $this->string = $string;
}

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