You are here

private static function CleanerSettingsForm::themeTable in Cleaner 8

Same name and namespace in other branches
  1. 8.2 src/Form/CleanerSettingsForm.php \Drupal\cleaner\Form\CleanerSettingsForm::themeTable()

Render the table.

Parameters

array $rows: Table rows.

Return value

string Rendered HTML.

1 call to CleanerSettingsForm::themeTable()
CleanerSettingsForm::getCacheTablesTable in src/Form/CleanerSettingsForm.php
Get cache tables table.

File

src/Form/CleanerSettingsForm.php, line 127

Class

CleanerSettingsForm
Class CleanerSettingsForm.

Namespace

Drupal\cleaner\Form

Code

private static function themeTable($rows = []) {
  return \Drupal::theme()
    ->render('table', [
    'rows' => $rows,
    'attributes' => [
      'class' => [
        'cleaner-cache-tables',
      ],
    ],
  ]);
}