public function Drupal8::debug in Realistic Dummy Content 8.2
Same name and namespace in other branches
- 7.2 api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::debug()
- 3.x api/src/Framework/Drupal8.php \Drupal\realistic_dummy_content_api\Framework\Drupal8::debug()
File
- api/
src/ Framework/ Drupal8.php, line 310
Class
- Drupal8
- Drupal 8-specific code.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function debug($message, $info = NULL) {
if ($this
->moduleExists('devel')) {
if (is_string($message)) {
// @codingStandardsIgnoreStart
dpm($message, $info);
// @codingStandardsIgnoreEnd
}
else {
// @codingStandardsIgnoreStart
dpm($info . ' ==>');
// @codingStandardsIgnoreEnd
if (function_exists('ksm')) {
ksm($message);
}
else {
// @codingStandardsIgnoreStart
dpm($message);
// @codingStandardsIgnoreEnd
}
}
}
$this
->watchdog('<pre>' . print_r(array(
$info => $message,
), TRUE) . '</pre>');
}