function TextWrapper::__construct

Constructs a \Drupal\Tests\Component\Utility\TextWrapper

Parameters

string $text:

File

core/tests/Drupal/Tests/Component/Utility/TextWrapper.php, line 22

Class

TextWrapper
Used by SafeMarkupTest to test that a class with a __toString() method works.

Namespace

Drupal\Tests\Component\Utility

Code

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

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