public static function ExifFactory::getExifInterface in Exif 7
Same name and namespace in other branches
- 8.2 src/ExifFactory.php \Drupal\exif\ExifFactory::getExifInterface()
- 8 src/ExifFactory.php \Drupal\exif\ExifFactory::getExifInterface()
1 call to ExifFactory::getExifInterface()
- _exif_get_class in ./
exif.module - Helper function to get the exif class
File
- ./
ExifFactory.php, line 23 - Contains \Drupal\exif\ExifFactory
Class
Namespace
Drupal\exifCode
public static function getExifInterface() {
$extractionSolution = variable_get('exif_extraction_solution');
$useExifToolSimple = $extractionSolution == "simple_exiftool";
if (isset($useExifToolSimple) && $useExifToolSimple && SimpleExifToolFacade::checkConfiguration()) {
return SimpleExifToolFacade::getInstance();
}
else {
//default case for now (same behavior as previous versions)
return ExifPHPExtension::getInstance();
}
}