public function VarDumperConsole::dump in VarDumper 7
Same name and namespace in other branches
- 8 modules/vardumper_console/src/VarDumper/VarDumperConsole.php \Drupal\vardumper_console\VarDumper\VarDumperConsole::dump()
File
- modules/
vardumper_console/ src/ VarDumper/ VarDumperConsole.php, line 20 - Contains Drupal\vardumper_console\VarDumper\VarDumperConsole.
Class
- VarDumperConsole
- The VarDumperConsole class.
Namespace
Drupal\vardumper_console\VarDumperCode
public function dump($var, $name = '') {
$cloner = new VarCloner();
$dumper = new CliDumper('php://stdout');
$html = $this
->border(strip_tags($this
->getHeaders($name, $this
->getDebugInformation()))) . "\n";
file_put_contents('php://stdout', $html);
$dumper
->dump($cloner
->cloneVar($var));
}