You are here

public function SafeStringTrait::__toString in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Component/Utility/SafeStringTrait.php \Drupal\Component\Utility\SafeStringTrait::__toString()

Returns the string version of the SafeString object.

Return value

string The safe string content.

File

lib/Drupal/Component/Utility/SafeStringTrait.php, line 56
Contains \Drupal\Component\Utility\SafeStringTrait.

Class

SafeStringTrait
Implements SafeStringInterface and Countable for rendered objects.

Namespace

Drupal\Component\Utility

Code

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