public function ExifTagMapperInterface::resolveKeyToIfdAndTag in File metadata manager 8
Same name and namespace in other branches
- 8.2 file_mdm_exif/src/ExifTagMapperInterface.php \Drupal\file_mdm_exif\ExifTagMapperInterface::resolveKeyToIfdAndTag()
Resolves a metadata 'key' to the default EXIF IFD and TAG.
Parameters
string|array $key: A metadata 'key' as passed in by the file metadata manager. It can be a string, in which case the default IFD and TAG are returned. If it is an array, then the first and the second array elements define respectively the IFD and the TAG requested. IFD and TAG can be strings, in which case they are converted to EXIF integer identifiers, or integers, in which case they are returned as such.
Return value
array An associative array with the following keys: 'ifd' - the IFD EXIF integer identifier. 'tag' - the TAG EXIF integer identifier.
Throws
\Drupal\file_mdm\FileMetadataException When wrong argument is passed, or if the IFD/TAG could not be found.
1 method overrides ExifTagMapperInterface::resolveKeyToIfdAndTag()
- ExifTagMapper::resolveKeyToIfdAndTag in file_mdm_exif/
src/ ExifTagMapper.php - Resolves a metadata 'key' to the default EXIF IFD and TAG.
File
- file_mdm_exif/
src/ ExifTagMapperInterface.php, line 29
Class
- ExifTagMapperInterface
- Provides an interface for EXIF metadata ifds and tags mapper.
Namespace
Drupal\file_mdm_exifCode
public function resolveKeyToIfdAndTag($key);