You are here

public function TextWrapper::__toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/Utility/TextWrapper.php \Drupal\Tests\Component\Utility\TextWrapper::__toString()

Magic method

Return value

string

File

core/tests/Drupal/Tests/Component/Utility/TextWrapper.php, line 35
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\Utility

Code

public function __toString() {
  return $this->text;
}