You are here

class TwigExtensionTestString in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php \Drupal\Tests\Core\Template\TwigExtensionTestString
  2. 10 core/tests/Drupal/Tests/Core/Template/TwigExtensionTest.php \Drupal\Tests\Core\Template\TwigExtensionTestString

Hierarchy

Expanded class hierarchy of TwigExtensionTestString

File

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

Namespace

Drupal\Tests\Core\Template
View source
class TwigExtensionTestString {
  protected $string;
  public function __construct($string) {
    $this->string = $string;
  }
  public function __toString() {
    return $this->string;
  }

}

Members