public static function TestVarDumper::htmlHandler in Drupal 9
A HTML handler for \Symfony\Component\VarDumper\VarDumper.
File
- core/
tests/ Drupal/ TestTools/ TestVarDumper.php, line 40
Class
- TestVarDumper
- Provides handlers for the Symfony VarDumper to work within tests.
Namespace
Drupal\TestToolsCode
public static function htmlHandler($var) {
$cloner = new VarCloner();
$dumper = new HtmlDumper();
$dumper
->dump($cloner
->cloneVar($var));
}