You are here

protected function CleanerSettingsForm::getCacheTablesTable in Cleaner 8

Same name and namespace in other branches
  1. 8.2 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 69

Class

CleanerSettingsForm
Class CleanerSettingsForm.

Namespace

Drupal\cleaner\Form

Code

protected function getCacheTablesTable() {

  // Get all CACHE tables form database.
  $list = self::getAllCacheTables();
  if (!empty($list)) {

    // Prepare table's rows.
    $rows = self::prepareRows($list);

    // Create theme table rendered HTML.
    $table = self::themeTable($rows);
    return $this
      ->t('The current cache tables are:') . $table;
  }
  return $this
    ->t('There is no cache tables in the database.');
}