protected function UpdateLogger::outputHtml in Update helper 8
Same name and namespace in other branches
- 2.x src/UpdateLogger.php \Drupal\update_helper\UpdateLogger::outputHtml()
Output logs in format suitable for HTML and clear logs too.
Return value
string Returns HTML.
1 call to UpdateLogger::outputHtml()
- UpdateLogger::output in src/
UpdateLogger.php - Output log result, depending on channel used and clean log.
File
- src/
UpdateLogger.php, line 68
Class
- UpdateLogger
- Helper service for logging in update hooks provided by update helper.
Namespace
Drupal\update_helperCode
protected function outputHtml() {
$full_log = '';
$current_logs = $this
->cleanLogs();
foreach ($current_logs as $log_entry) {
$full_log .= $log_entry[1] . '<br /><br />';
}
return $full_log;
}