class HtmlTestMarkup in Drupal 8
Same name and namespace in other branches
- 9 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 implements MarkupInterface uses MarkupTrait
Expanded class hierarchy of HtmlTestMarkup
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ HtmlTest.php, line 409
Namespace
Drupal\Tests\Component\UtilityView source
class HtmlTestMarkup implements MarkupInterface {
use MarkupTrait;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MarkupTrait:: |
protected | property | The safe string. | |
MarkupTrait:: |
public | function | Returns the string length. | |
MarkupTrait:: |
public static | function | Creates a Markup object if necessary. | 2 |
MarkupTrait:: |
public | function | Returns a representation of the object for use in JSON serialization. | |
MarkupTrait:: |
public | function | Returns the string version of the Markup object. |