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