You are here

public function MarkupInterface::__toString in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Render/MarkupInterface.php \Drupal\Component\Render\MarkupInterface::__toString()
  2. 9 core/lib/Drupal/Component/Render/MarkupInterface.php \Drupal\Component\Render\MarkupInterface::__toString()

Returns markup.

Return value

string The markup.

2 methods override MarkupInterface::__toString()
Attribute::__toString in core/lib/Drupal/Core/Template/Attribute.php
Implements the magic __toString() method.
AuditResult::__toString in core/modules/migrate/src/Audit/AuditResult.php
Returns the reasons the migration passed or failed, as a string.

File

core/lib/Drupal/Component/Render/MarkupInterface.php, line 40

Class

MarkupInterface
Marks an object's __toString() method as returning markup.

Namespace

Drupal\Component\Render

Code

public function __toString();