You are here

public function RealisticDummyContentDebugLog::error in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/includes/RealisticDummyContentDebugLog.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentDebugLog::error()
  2. 7.2 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\includes

Code

public function error($text, $vars = []) {

  // @codingStandardsIgnoreStart
  // Cannot pass a litteral to t() here.
  debug(t($text, $vars));

  // @codingStandardsIgnoreEnd
}