public function RealisticDummyContentDebugLog::log 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::log()
- 7.2 api/src/includes/RealisticDummyContentDebugLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDebugLog::log()
Add a log entry for normal execution.
Parameters
string $text: Text for the log entry.
array $vars: Variables to insert in the text.
Overrides RealisticDummyContentLogInterface::log
File
- api/
src/ includes/ RealisticDummyContentDebugLog.php, line 13
Class
- RealisticDummyContentDebugLog
- This log class can be used whenever you need to log data.
Namespace
Drupal\realistic_dummy_content_api\includesCode
public function log($text, $vars = []) {
// @codingStandardsIgnoreStart
// Cannot pass a litteral to t() here.
debug(t($text, $vars));
// @codingStandardsIgnoreEnd
}