public function DatabaseRowCount::getResultInfo in Site Audit 8.3
.
Overrides SiteAuditCheckBase::getResultInfo
1 call to DatabaseRowCount::getResultInfo()
- DatabaseRowCount::getResultWarn in src/
Plugin/ SiteAuditCheck/ DatabaseRowCount.php - .
File
- src/
Plugin/ SiteAuditCheck/ DatabaseRowCount.php, line 28
Class
- DatabaseRowCount
- Provides the CronLast Check.
Namespace
Drupal\site_audit\Plugin\SiteAuditCheckCode
public function getResultInfo() {
if (empty($this->registry->rows_by_table)) {
return $this
->t('No tables with more than 1000 rows.');
}
$table_rows = [];
foreach ($this->registry->rows_by_table as $table_name => $rows) {
$table_rows[] = [
$table_name,
$rows,
];
}
$header = [
$this
->t('Table Name'),
$this
->t('Rows'),
];
return [
'#theme' => 'table',
'#class' => 'table-condensed',
'#header' => $header,
'#rows' => $table_rows,
];
}