Same name in other branches
- 7.x-1.x ExifFactory.php \Drupal\exif\ExifFactory::getExifInterface()
- 8.x-1.x src/ExifFactory.php \Drupal\exif\ExifFactory::getExifInterface()
Return configured exif parser.
Return value
\Drupal\exif\ExifInterface cCnfigured exif parser
6 calls to ExifFactory::getExifInterface()
- ExifContent::checkTitle dans src/
ExifContent.php - Allow to fill the title with exif data.
- ExifContent::entity_insert_update dans src/
ExifContent.php - Main entry of the module.
- ExifContent::getDataFromFileUri dans src/
ExifContent.php - Retrieve all metadata values from an image.
- ExifFieldWidgetBase::retrieveExifFields dans src/
Plugin/ Field/ FieldWidget/ ExifFieldWidgetBase.php - List of possible fields.
- ExifHelp::content dans src/
ExifHelp.php - Return the content of the page.
Fichier
-
src/
ExifFactory.php, line 33
Classe
- ExifFactory
- Class ExifFactory allow to get right implementation.
Namespace
Drupal\exifCode
public static function getExifInterface() {
$config = \Drupal::config('exif.settings');
$extractionSolution = $config->get('extraction_solution');
if ($extractionSolution == 'simple_exiftool' && SimpleExifToolFacade::checkConfiguration()) {
return SimpleExifToolFacade::getInstance();
}
else {
// Default case for now (same behavior as previous versions)
return ExifPHPExtension::getInstance();
}
}