MarkupTrait::__toString

public MarkupTrait::__toString()

Returns the string version of the Markup object.

Return value

string The safe string content.

Overrides MarkupInterface::__toString

File

core/lib/Drupal/Component/Render/MarkupTrait.php, line 53

Class

MarkupTrait
Implements MarkupInterface and Countable for rendered objects.

Namespace

Drupal\Component\Render

Code

public function __toString() {
  return $this->string;
}
doc_Drupal
2016-10-29 09:25:37
Comments
Leave a Comment

Please login to continue.