class HtmlTestMarkup
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTestMarkup
- 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTestMarkup
- 8.9.x core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTestMarkup
Marks an object's __toString() method as returning markup.
Hierarchy
- class \Drupal\Tests\Component\Utility\HtmlTestMarkup extends \Drupal\Component\Render\MarkupInterface uses \Drupal\Component\Render\MarkupTrait
Expanded class hierarchy of HtmlTestMarkup
File
-
core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 439
Namespace
Drupal\Tests\Component\UtilityView source
class HtmlTestMarkup implements MarkupInterface {
use MarkupTrait;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
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. | 2 |
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. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.