function EnvironmentCleaner::cleanTemporaryDirectories
Same name in other branches
- 9 core/lib/Drupal/Core/Test/EnvironmentCleaner.php \Drupal\Core\Test\EnvironmentCleaner::cleanTemporaryDirectories()
- 8.9.x core/lib/Drupal/Core/Test/EnvironmentCleaner.php \Drupal\Core\Test\EnvironmentCleaner::cleanTemporaryDirectories()
- 10 core/lib/Drupal/Core/Test/EnvironmentCleaner.php \Drupal\Core\Test\EnvironmentCleaner::cleanTemporaryDirectories()
Overrides EnvironmentCleanerInterface::cleanTemporaryDirectories
File
-
core/
lib/ Drupal/ Core/ Test/ EnvironmentCleaner.php, line 97
Class
- EnvironmentCleaner
- Helper class for cleaning test environments.
Namespace
Drupal\Core\TestCode
public function cleanTemporaryDirectories() : void {
$count = $this->doCleanTemporaryDirectories();
if ($count > 0) {
$this->output
->write('Temporary directories removed: ' . $count);
}
else {
$this->output
->write('No temporary directories to remove.');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.