protected function CleanerSettingsForm::getCacheTablesTable in Cleaner 8.2
Same name and namespace in other branches
- 8 src/Form/CleanerSettingsForm.php \Drupal\cleaner\Form\CleanerSettingsForm::getCacheTablesTable()
Get cache tables table.
1 call to CleanerSettingsForm::getCacheTablesTable()
- CleanerSettingsForm::buildForm in src/
Form/ CleanerSettingsForm.php - Form constructor.
File
- src/
Form/ CleanerSettingsForm.php, line 111
Class
- CleanerSettingsForm
- Class CleanerSettingsForm.
Namespace
Drupal\cleaner\FormCode
protected function getCacheTablesTable() {
// Get all CACHE tables form database.
$list = $this
->getAllCacheTables();
if (!empty($list)) {
// Prepare table's rows.
$rows = static::prepareRows($list);
// Create theme table rendered HTML.
$table = $this
->themeTable($rows);
return $this
->t('The current cache tables are: @table', [
'@table' => $table,
]);
}
return $this
->t('There is no cache tables in the database.');
}