RealisticDummyContentDrushLog.php in Realistic Dummy Content 8.2
File
api/src/includes/RealisticDummyContentDrushLog.php
View source
<?php
namespace Drupal\realistic_dummy_content_api\includes;
class RealisticDummyContentDrushLog implements RealisticDummyContentLogInterface {
public function log($text, $vars = array()) {
drush_log(dt($text, $vars), 'ok');
}
public function error($text, $vars = array()) {
$this
->log('RealisticDummyContent_FAILURE');
drush_set_error('RealisticDummyContent_ERROR', dt($text, $vars));
drush_set_context('DRUSH_ERROR_CODE', 1);
die(1);
}
}