class RealisticDummyContentDebugLog in Realistic Dummy Content 8.2
Same name and namespace in other branches
- 7.2 api/src/includes/RealisticDummyContentDebugLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDebugLog
- 3.x 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
1 file declares its use of RealisticDummyContentDebugLog
- RealisticDummyContentDatabaseTestCase.test in api/
drupal7-simpletests/ RealisticDummyContentDatabaseTestCase.test - Drupal 7 tests.
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 = array()) {
// @codingStandardsIgnoreStart
// Cannot pass a litteral to t() here.
debug(t($text, $vars));
// @codingStandardsIgnoreEnd
}
/**
* {@inheritdoc}
*/
public function error($text, $vars = array()) {
// @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:: |