public function SafeStringTrait::__toString in Service Container 7.2
Same name and namespace in other branches
- 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\UtilityCode
public function __toString() {
return $this->string;
}