ToStringTrait

Wraps __toString in a trait to avoid some fatals.

Hierarchy

File

core/lib/Drupal/Component/Utility/ToStringTrait.php, line 8

Namespace

Drupal\Component\Utility

Members

Name Modifiers Type Description
ToStringTrait::render abstract public function Renders the object as a string.
ToStringTrait::_die protected function For test purposes, wrap die() in an overridable method.
ToStringTrait::__toString public function Implements the magic __toString() method.
doc_Drupal
2016-10-29 09:48:42
Comments
Leave a Comment

Please login to continue.