public function DatabaseCollation::getResultInfo in Site Audit 8.3
.
Overrides SiteAuditCheckBase::getResultInfo
1 call to DatabaseCollation::getResultInfo()
- DatabaseCollation::getResultWarn in src/
Plugin/ SiteAuditCheck/ DatabaseCollation.php - .
File
- src/
Plugin/ SiteAuditCheck/ DatabaseCollation.php, line 28
Class
- DatabaseCollation
- Provides the CronLast Check.
Namespace
Drupal\site_audit\Plugin\SiteAuditCheckCode
public function getResultInfo() {
// If ($this->options['html']) {.
if (TRUE) {
$ret_val = '<table class="table table-condensed">';
$ret_val .= '<thead><tr><th>' . $this
->t('Table Name') . '</th><th>' . $this
->t('Collation') . '</th></tr></thead>';
$ret_val .= '<tbody>';
foreach ($this->registry->collation_tables as $name => $collation) {
$ret_val .= '<tr>';
$ret_val .= '<td>' . $name . '</td>';
$ret_val .= '<td>' . $collation . '</td>';
$ret_val .= '</tr>';
}
$ret_val .= '</tbody>';
$ret_val .= '</table>';
}
else {
$ret_val = $this
->t('Table Name: Collation') . PHP_EOL;
if (!$this->options['json']) {
$ret_val .= str_repeat(' ', 4);
}
$ret_val .= '---------------------';
foreach ($this->registry->collation_tables as $name => $collation) {
$ret_val .= PHP_EOL;
if (!$this->options['json']) {
$ret_val .= str_repeat(' ', 4);
}
$ret_val .= "{$name}: {$collation}";
}
}
return $ret_val;
}