Implements MarkupInterface and Countable for rendered objects.
Hierarchy
- trait \Drupal\Component\Render\MarkupTrait
See also
\Drupal\Component\Render\MarkupInterface
File
- core/lib/Drupal/Component/Render/MarkupTrait.php, line 12
Namespace
Drupal\Component\Render
Members
Name | Modifiers | Type | Description |
---|---|---|---|
MarkupTrait::$string | protected | property | The safe string. |
MarkupTrait::count | public | function | Returns the string length. |
MarkupTrait::create | public static | function | Creates a Markup object if necessary. |
MarkupTrait::jsonSerialize | public | function | Returns a representation of the object for use in JSON serialization. |
MarkupTrait::__toString | public | function | Returns the string version of the Markup object. Overrides MarkupInterface::__toString |
Please login to continue.