class SafeMarkupTestMarkup in Zircon Profile 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
Same name and namespace in other branches
- 8.0 core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php \Drupal\KernelTests\Core\Theme\SafeMarkupTestMarkup
Implements MarkupInterface without implementing \Countable
Hierarchy
- class \Drupal\KernelTests\Core\Theme\SafeMarkupTestMarkup implements MarkupInterface uses MarkupTrait
Expanded class hierarchy of SafeMarkupTestMarkup
File
- core/
tests/ Drupal/ KernelTests/ Core/ Theme/ TwigMarkupInterfaceTest.php, line 100 - Contains \Drupal\KernelTests\Core\Theme\ThemeRenderAndAutoescapeTest.
Namespace
Drupal\KernelTests\Core\ThemeView source
class SafeMarkupTestMarkup implements MarkupInterface {
use MarkupTrait;
/**
* Overrides MarkupTrait::create() to allow creation with empty strings.
*/
public static function create($string) {
$object = new static();
$object->string = $string;
return $object;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MarkupTrait:: |
protected | property | The safe string. | |
MarkupTrait:: |
public | function | Returns the string length. | |
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. | |
SafeMarkupTestMarkup:: |
public static | function |
Overrides MarkupTrait::create() to allow creation with empty strings. Overrides MarkupTrait:: |