public static function AssetFileStorage::deleteAllFiles in Asset Injector 8.2
Same name and namespace in other branches
- 8 src/AssetFileStorage.php \Drupal\asset_injector\AssetFileStorage::deleteAllFiles()
Delete all asset files.
See also
1 call to AssetFileStorage::deleteAllFiles()
- asset_injector_cache_flush in ./
asset_injector.module - Implements hook_cache_flush().
File
- src/
AssetFileStorage.php, line 116
Class
- AssetFileStorage
- Class AssetFileStorage.
Namespace
Drupal\asset_injectorCode
public static function deleteAllFiles() {
if (file_exists(self::DIRECTORY_URI)) {
self::getFileSystemService()
->deleteRecursive(self::DIRECTORY_URI);
}
}