class VarDumperWatchdog in VarDumper 7
Same name and namespace in other branches
- 8 modules/vardumper_watchdog/src/VarDumper/VarDumperWatchdog.php \Drupal\vardumper_watchdog\VarDumper\VarDumperWatchdog
The VarDumperWatchdog class.
Hierarchy
- class \Drupal\vardumper\VarDumper\VarDumperDebug
- class \Drupal\vardumper_watchdog\VarDumper\VarDumperWatchdog
Expanded class hierarchy of VarDumperWatchdog
1 string reference to 'VarDumperWatchdog'
- vardumper_watchdog.services.yml in modules/
vardumper_watchdog/ vardumper_watchdog.services.yml - modules/vardumper_watchdog/vardumper_watchdog.services.yml
1 service uses VarDumperWatchdog
- vardumper_watchdog in modules/
vardumper_watchdog/ vardumper_watchdog.services.yml - \Drupal\vardumper_watchdog\VarDumper\VarDumperWatchdog
File
- modules/
vardumper_watchdog/ src/ VarDumper/ VarDumperWatchdog.php, line 15 - Contains Drupal\vardumper_watchdog\VarDumper\VarDumperWatchdog.
Namespace
Drupal\vardumper_watchdog\VarDumperView source
class VarDumperWatchdog extends VarDumperDebug {
/**
* The Logger service.
*
* @var \Psr\Log\LoggerInterface
*/
protected $logger;
/**
* {@inheritdoc}
*/
public function __construct(LoggerInterface $logger) {
$this->logger = $logger;
}
/**
* {@inheritdoc}
*/
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));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
VarDumperDebug:: |
protected | property | ||
VarDumperDebug:: |
protected | property | ||
VarDumperDebug:: |
public | function | ||
VarDumperDebug:: |
public | function | ||
VarDumperDebug:: |
public | function | ||
VarDumperDebug:: |
public | function | ||
VarDumperWatchdog:: |
protected | property | The Logger service. | |
VarDumperWatchdog:: |
public | function | ||
VarDumperWatchdog:: |
public | function |