Parameters
array $metadata:
array $tag_names:
Return value
array
File
-
./
ExifPHPExtension.php, line 312
Class
- ExifPHPExtension
- This is a helper class to handle the whole data processing of exif.
Namespace
Drupal\exifCode
public function filterMetadataTags(array $metadata, array $tag_names) {
$info = array();
foreach ($tag_names as $drupal_field => $metadata_settings) {
$tagName = $metadata_settings['metadata_field'];
if (!empty($metadata[$tagName['section']][$tagName['tag']])) {
$info[$tagName['section']][$tagName['tag']] = $metadata[$tagName['section']][$tagName['tag']];
}
}
return $info;
}