public function StaticGenerator::cleanupStaticDirectory in Tome 8
Cleans up old files from the static directory.
Overrides StaticGeneratorInterface::cleanupStaticDirectory
File
- modules/
tome_static/ src/ StaticGenerator.php, line 129
Class
- StaticGenerator
- Handles static site generation.
Namespace
Drupal\tome_staticCode
public function cleanupStaticDirectory() {
foreach ($this->cache
->getExpiredFiles() as $file) {
$this->fileSystem
->delete($file);
}
}