Same name and namespace in other branches
  1. 8.x-2.x src/ExifContent.php \Drupal\exif\ExifContent::__destruct() 1 comment

Cleanup of artifacts from processing files.

File

src/ExifContent.php, line 616

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);
    }
}