You are here

public static function ConfigHandler::getTableList in DB Maintenance 8

Same name and namespace in other branches
  1. 7.2 src/Module/Config/ConfigHandler.php \Drupal\db_maintenance\Module\Config\ConfigHandler::getTableList()
  2. 2.0.x src/Module/Config/ConfigHandler.php \Drupal\db_maintenance\Module\Config\ConfigHandler::getTableList()

Returns TableList config value.

2 calls to ConfigHandler::getTableList()
DbHandler::optimizeTables in src/Module/Db/DbHandler.php
Performs the maintenance.
DbMaintenanceAdminSettings::buildForm in src/Form/DbMaintenanceAdminSettings.php
Form constructor.

File

src/Module/Config/ConfigHandler.php, line 83
ConfigHandler class.

Class

ConfigHandler
ConfigHandler class.

Namespace

Drupal\db_maintenance\Module\Config

Code

public static function getTableList($database, $default = NULL) {
  $val = \Drupal::config('db_maintenance.settings')
    ->get('table_list_' . $database);
  if (is_null($val)) {

    // This config key does not exist.
    return $default;
  }
  return $val;
}