You are here

public function SimpleExifToolFacade::readMetadataTags in Exif 7

Same name and namespace in other branches
  1. 8.2 src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::readMetadataTags()
  2. 8 src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::readMetadataTags()

$arOptions liste of options for the method : # enable_sections : (default : TRUE) retrieve also sections.

Parameters

string $file:

boolean $enable_sections:

Return value

array $data

Overrides ExifInterface::readMetadataTags

File

./SimpleExiftoolFacade.php, line 175

Class

SimpleExifToolFacade

Namespace

Drupal\exif

Code

public function readMetadataTags($file, $enable_sections = TRUE) {
  if (!file_exists($file)) {
    return array();
  }
  $data = $this
    ->readAllInformation($file, $enable_sections);
  return $data;
}