You are here

public static function TextToWrapper::deleteTempFile in Image Effects 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageToolkit/Operation/imagemagick/TextToWrapper.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\TextToWrapper::deleteTempFile()
  2. 8.2 src/Plugin/ImageToolkit/Operation/imagemagick/TextToWrapper.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick\TextToWrapper::deleteTempFile()

Delete the image effect temporary file after it has been used.

Parameters

string $file_path: Path of the file that is about to be deleted.

File

src/Plugin/ImageToolkit/Operation/imagemagick/TextToWrapper.php, line 51

Class

TextToWrapper
Defines Imagemagick Text Overlay text-to-wrapper operation.

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation\imagemagick

Code

public static function deleteTempFile($file_path) {
  if (file_exists($file_path)) {
    file_unmanaged_delete($file_path);
  }
}