class SafeMarkupTestMarkup
Same name in this branch
- 8.9.x core/tests/Drupal/Tests/Component/Utility/SafeMarkupTest.php \Drupal\Tests\Component\Utility\SafeMarkupTestMarkup
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php \Drupal\KernelTests\Core\Theme\SafeMarkupTestMarkup
- 10 core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php \Drupal\KernelTests\Core\Theme\SafeMarkupTestMarkup
- 11.x 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 \Drupal\Component\Render\MarkupInterface uses \Drupal\Component\Render\MarkupTrait
Expanded class hierarchy of SafeMarkupTestMarkup
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Theme/ TwigMarkupInterfaceTest.php, line 104
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
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
MarkupTrait::$string | protected | property | The safe string. | |
MarkupTrait::count | public | function | Returns the string length. | |
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. | |
SafeMarkupTestMarkup::create | public static | function | Overrides MarkupTrait::create() to allow creation with empty strings. | Overrides MarkupTrait::create |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.