RealisticDummyContentDebugLog.php in Realistic Dummy Content 3.x
Same filename and directory in other branches
File
api/src/includes/RealisticDummyContentDebugLog.phpView source
<?php
namespace Drupal\realistic_dummy_content_api\includes;
/**
* This log class can be used whenever you need to log data.
*/
class RealisticDummyContentDebugLog implements RealisticDummyContentLogInterface {
/**
* {@inheritdoc}
*/
public function log($text, $vars = []) {
// @codingStandardsIgnoreStart
// Cannot pass a litteral to t() here.
debug(t($text, $vars));
// @codingStandardsIgnoreEnd
}
/**
* {@inheritdoc}
*/
public function error($text, $vars = []) {
// @codingStandardsIgnoreStart
// Cannot pass a litteral to t() here.
debug(t($text, $vars));
// @codingStandardsIgnoreEnd
}
}
Classes
Name | Description |
---|---|
RealisticDummyContentDebugLog | This log class can be used whenever you need to log data. |