class SafeMarkupTestMarkup in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Theme/TwigMarkupInterfaceTest.php \Drupal\KernelTests\Core\Theme\SafeMarkupTestMarkup
- 9 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 103 - Contains \Drupal\KernelTests\Core\Theme\TwigMarkupInterfaceTest.
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;
}
}