Wraps __toString in a trait to avoid some fatals.
Hierarchy
- trait \Drupal\Component\Utility\ToStringTrait
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. |
Please login to continue.