public function ImportEntity::removeArchive in Content Synchronizer 8.2
Same name and namespace in other branches
- 8 src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::removeArchive()
- 3.x src/Entity/ImportEntity.php \Drupal\content_synchronizer\Entity\ImportEntity::removeArchive()
Remove unzipped archive.
1 call to ImportEntity::removeArchive()
- ImportEntity::preSave in src/
Entity/ ImportEntity.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ ImportEntity.php, line 501
Class
- ImportEntity
- Defines the Import entity.
Namespace
Drupal\content_synchronizer\EntityCode
public function removeArchive() {
/** @var \Drupal\Core\File\FileSystemInterface $fileSystem */
$fileSystem = \Drupal::service('file_system');
$fileSystem
->deleteRecursive($this
->getArchiveFilesPath());
}