public function VarDumperDebug::getHeaders in VarDumper 8
Same name and namespace in other branches
- 7 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 34
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;
}