class Cleaner in Cleaner 8
Class Cleaner.
@package Drupal\cleaner
Hierarchy
- class \Drupal\cleaner\Cleaner
Expanded class hierarchy of Cleaner
3 string references to 'Cleaner'
1 service uses Cleaner
File
- src/
Cleaner.php, line 10
Namespace
Drupal\cleanerView source
class Cleaner {
/**
* Available services array.
*
* @var array
*/
protected static $services = [
'cleaner_tables',
'cleaner_mysql',
'cleaner_session',
'cleaner_watchdog',
];
/**
* Run Cleaner service.
*/
public static function run() {
$services = (array) self::$services;
if (!empty($services)) {
foreach ($services as $service) {
if (\Drupal::hasService($service)) {
\Drupal::service($service)
->execute();
}
}
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Cleaner:: |
protected static | property | Available services array. | |
Cleaner:: |
public static | function | Run Cleaner service. |