public function UpdateLogger::output in Update helper 2.x
Same name and namespace in other branches
- 8 src/UpdateLogger.php \Drupal\update_helper\UpdateLogger::output()
Output log result, depending on channel used and clean log.
Return value
string Returns HTML string in case of non console execution.
File
- src/
UpdateLogger.php, line 110
Class
- UpdateLogger
- Helper service for logging in update hooks provided by update helper.
Namespace
Drupal\update_helperCode
public function output() {
if (PHP_SAPI === 'cli') {
$this
->outputCli();
return '';
}
return $this
->outputHtml();
}