protected function CleanerCacheController::getAdditionalTables in Cleaner 8
Get an additional tables for clearing.
Return value
array Additional tables array.
1 call to CleanerCacheController::getAdditionalTables()
- CleanerCacheController::cleanerGetCacheTables in src/
Controller/ CleanerCacheController.php - Helper function for gathering all names of cache tables in DB.
File
- src/
Controller/ CleanerCacheController.php, line 149
Class
- CleanerCacheController
- Class CleanerCacheController.
Namespace
Drupal\cleaner\ControllerCode
protected function getAdditionalTables() {
$tables = [];
$additional = \Drupal::config(CLEANER_SETTINGS)
->get(self::$additionalConfigName);
foreach (self::explode($additional) as $table) {
if ($this->connection
->schema()
->tableExists($table)) {
$tables[] = $table;
}
}
return $tables;
}