Same name and namespace in other branches
  1. 7.x-1.x SimpleExiftoolFacade.php \Drupal\exif\SimpleExifToolFacade::getInstance() 1 comment
  2. 8.x-2.x src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::getInstance() 1 comment

Return singleton instance.

Return value

\Drupal\exif\ExifInterface the chosen implementation instance.

1 call to SimpleExifToolFacade::getInstance()
ExifFactory::getExifInterface in src/ExifFactory.php
Return configured exif parser.

File

src/SimpleExifToolFacade.php, line 28

Class

SimpleExifToolFacade
Class SimpleExifToolFacade.

Namespace

Drupal\exif

Code

public static function getInstance() {
    if (is_null(self::$instance)) {
        self::$instance = new self();
    }
    return self::$instance;
}