You are here

public function VarDumperDebug::getDebugInformation in VarDumper 7

Same name and namespace in other branches
  1. 8 src/VarDumper/VarDumperDebug.php \Drupal\vardumper\VarDumper\VarDumperDebug::getDebugInformation()
4 calls to VarDumperDebug::getDebugInformation()
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 37
Contains Drupal\vardumper\VarDumper\VarDumperDebug.

Class

VarDumperDebug

Namespace

Drupal\vardumper\VarDumper

Code

public function getDebugInformation() {
  $_ = array_reverse(debug_backtrace());
  while ($d = array_pop($_)) {
    if (strpos(@$d['file'], 'src/VarDumper') === FALSE && strpos(@$d['file'], 'vardumper') === FALSE) {
      break;
    }
  }
  return $d;
}