You are here

public static function ExifPHPExtension::checkConfiguration in Exif 8

Same name and namespace in other branches
  1. 8.2 src/ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::checkConfiguration()
  2. 7 ExifPHPExtension.php \Drupal\exif\ExifPHPExtension::checkConfiguration()

Check if the exif php extension is installed.

Return value

bool true if extension is installed.

File

src/ExifPHPExtension.php, line 42

Class

ExifPHPExtension
Class ExifPHPExtension Parser implementation base d on PHP Exif extension.

Namespace

Drupal\exif

Code

public static function checkConfiguration() {
  return function_exists('exif_read_data') && function_exists('iptcparse');
}