public function SimpleExifToolFacade::readMetadataTags in Exif 8
Same name and namespace in other branches
- 8.2 src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::readMetadataTags()
- 7 SimpleExiftoolFacade.php \Drupal\exif\SimpleExifToolFacade::readMetadataTags()
Retrieve all metadata from a file.
Parameters
string $file: File to read metadata from.
bool $enable_sections: Should sections should be also retrieved.
Return value
array metadata keys and associated values.
Overrides ExifInterface::readMetadataTags
File
- src/
SimpleExifToolFacade.php, line 79
Class
- SimpleExifToolFacade
- Class SimpleExifToolFacade.
Namespace
Drupal\exifCode
public function readMetadataTags($file, $enable_sections = TRUE) {
if (!file_exists($file)) {
return [];
}
$data = $this
->readAllInformation($file, $enable_sections);
return $data;
}