Same name and namespace in other branches
- 8.x-1.x src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::toLowerJsonResult() 1 comment
- 8.x-2.x src/SimpleExifToolFacade.php \Drupal\exif\SimpleExifToolFacade::toLowerJsonResult() 1 comment
1 call to SimpleExifToolFacade::tolowerJsonResult()
File
-
./
SimpleExiftoolFacade.php, line 101
Class
- SimpleExifToolFacade
- Helper class to handle the whole data processing of EXIF with exiftool.
Namespace
Drupal\exifCode
public function tolowerJsonResult(array $data) {
$result = array();
foreach ($data as $section => $values) {
if (is_array($values)) {
$result[strtolower($section)] = array_change_key_case($values);
}
else {
$result[strtolower($section)] = $values;
}
}
return $result;
}