public function VarDumperDebug::getHeaders in VarDumper 7
Same name and namespace in other branches
- 8 src/VarDumper/VarDumperDebug.php \Drupal\vardumper\VarDumper\VarDumperDebug::getHeaders()
4 calls to VarDumperDebug::getHeaders()
- VarDumperBlock::dump in modules/
vardumper_block/ src/ VarDumper/ VarDumperBlock.php - VarDumperConsole::dump in modules/
vardumper_console/ src/ VarDumper/ VarDumperConsole.php - VarDumperMessage::dump in src/
VarDumper/ VarDumperMessage.php - VarDumperWatchdog::dump in modules/
vardumper_watchdog/ src/ VarDumper/ VarDumperWatchdog.php
File
- src/
VarDumper/ VarDumperDebug.php, line 23 - Contains Drupal\vardumper\VarDumper\VarDumperDebug.
Class
Namespace
Drupal\vardumper\VarDumperCode
public function getHeaders($name, $d) {
$time = explode(' ', microtime());
$time = date("H:i:s") . '.' . round($time[0], 4) * 10000;
$result = sprintf($this->header1, $d['file'], $d['line'], $time);
if (!empty($name)) {
$result = sprintf($this->header2, $name, $d['file'], $d['line'], $time);
}
return $result;
}