Same filename and directory in other branches
- 7.x-1.x ExifFactory.php
- 8.x-1.x src/ExifFactory.php
Namespace
Drupal\exif
File
-
src/ExifFactory.php
View source
<?php
namespace Drupal\exif;
class ExifFactory {
public static function getExtractionSolutions() {
return [
'php_extensions' => 'php extensions',
'simple_exiftool' => 'exiftool',
];
}
public static function getExifInterface() {
$config = \Drupal::config('exif.settings');
$extractionSolution = $config->get('extraction_solution');
if ($extractionSolution == 'simple_exiftool' && SimpleExifToolFacade::checkConfiguration()) {
return SimpleExifToolFacade::getInstance();
}
else {
return ExifPHPExtension::getInstance();
}
}
}
Classes
| Title |
Deprecated |
Summary |
| ExifFactory |
|
Class ExifFactory allow to get right implementation. |