public function TextWrapper::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/Utility/TextWrapper.php \Drupal\Tests\Component\Utility\TextWrapper::__construct()
Constructs a \Drupal\Tests\Component\Utility\TextWrapper
Parameters
string $text:
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ TextWrapper.php, line 26 - Contains \Drupal\Tests\Component\Utility\TextWrapper.
Class
- TextWrapper
- Used by SafeMarkupTest to test that a class with a __toString() method works.
Namespace
Drupal\Tests\Component\UtilityCode
public function __construct($text) {
$this->text = $text;
}