You are here

class HtmlTestMarkup in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTestMarkup
  2. 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTestMarkup

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

Hierarchy

Expanded class hierarchy of HtmlTestMarkup

File

core/tests/Drupal/Tests/Component/Utility/HtmlTest.php, line 413

Namespace

Drupal\Tests\Component\Utility
View source
class HtmlTestMarkup implements MarkupInterface {
  use MarkupTrait;

}

Members

Namesort descending Modifiers Type Description Overrides
MarkupTrait::$string protected property The safe string.
MarkupTrait::count public function
MarkupTrait::create public static function Creates a Markup object if necessary.
MarkupTrait::jsonSerialize public function
MarkupTrait::__toString public function Returns the string version of the Markup object.