class RealisticDummyContentDebugLog in Realistic Dummy Content 3.x
Same name and namespace in other branches
- 8.2 api/src/includes/RealisticDummyContentDebugLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDebugLog
- 7.2 api/src/includes/RealisticDummyContentDebugLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDebugLog
This log class can be used whenever you need to log data.
Hierarchy
- class \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDebugLog implements RealisticDummyContentLogInterface
Expanded class hierarchy of RealisticDummyContentDebugLog
File
- api/
src/ includes/ RealisticDummyContentDebugLog.php, line 8
Namespace
Drupal\realistic_dummy_content_api\includesView source
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
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RealisticDummyContentDebugLog:: |
public | function |
Add a log entry for an error. Overrides RealisticDummyContentLogInterface:: |
|
RealisticDummyContentDebugLog:: |
public | function |
Add a log entry for normal execution. Overrides RealisticDummyContentLogInterface:: |