You are here

public function ExifContent::__destruct in Exif 8

Same name and namespace in other branches
  1. 8.2 src/ExifContent.php \Drupal\exif\ExifContent::__destruct()

Cleanup of artifacts from processing files.

File

src/ExifContent.php, line 614

Class

ExifContent
Class ExifContent make link between drupal content and file content.

Namespace

Drupal\exif

Code

public function __destruct() {

  // Get rid of temporary files created for this instance.
  foreach ($this->localCopiesOfRemoteFiles as $uri) {
    \Drupal::service('file_system')
      ->unlink($uri);
  }
}