You are here

public function VarDumperWatchdog::dump in VarDumper 7

Same name and namespace in other branches
  1. 8 modules/vardumper_watchdog/src/VarDumper/VarDumperWatchdog.php \Drupal\vardumper_watchdog\VarDumper\VarDumperWatchdog::dump()

File

modules/vardumper_watchdog/src/VarDumper/VarDumperWatchdog.php, line 34
Contains Drupal\vardumper_watchdog\VarDumper\VarDumperWatchdog.

Class

VarDumperWatchdog
The VarDumperWatchdog class.

Namespace

Drupal\vardumper_watchdog\VarDumper

Code

public function dump($var, $name = '') {

  // Permission are not checked in this submodule because permissions
  // are set on the module dblog from Drupal 7.
  $this->logger
    ->debug($this
    ->getHeaders($name, $this
    ->getDebugInformation()) . $this
    ->getDebug($var));
}