Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MarkupInterface.php

function MarkupInterface::__toString

Returns markup.

Return value

string The markup.

5 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.
FormattableMarkup::__toString in core/lib/Drupal/Component/Render/FormattableMarkup.php
Returns markup.
GeneratedLink::__toString in core/lib/Drupal/Core/GeneratedLink.php
Returns markup.
HtmlEscapedText::__toString in core/lib/Drupal/Component/Render/HtmlEscapedText.php
Returns markup.

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();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal