class SafeMarkupTestMarkup in Drupal 8
Same name in this branch
- 8 core/tests/Drupal/Tests/Component/Utility/SafeMarkupTest.php \Drupal\Tests\Component\Utility\SafeMarkupTestMarkup
- 8 core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php \Drupal\KernelTests\Core\Theme\SafeMarkupTestMarkup
Marks an object's __toString() method as returning markup.
Hierarchy
- class \Drupal\Tests\Component\Utility\SafeMarkupTestMarkup implements MarkupInterface uses MarkupTrait
Expanded class hierarchy of SafeMarkupTestMarkup
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ SafeMarkupTest.php, line 190 - Contains \Drupal\Tests\Component\Utility\SafeMarkupTest.
Namespace
Drupal\Tests\Component\UtilityView source
class SafeMarkupTestMarkup 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. |