protected function ExifTagMapper::getCache in File metadata manager 8
Same name and namespace in other branches
- 8.2 file_mdm_exif/src/ExifTagMapper.php \Drupal\file_mdm_exif\ExifTagMapper::getCache()
Gets a cache entry.
Parameters
string $id: The cache id to get.
Return value
object|null The cache item or NULL on failure.
4 calls to ExifTagMapper::getCache()
- ExifTagMapper::getStringToIfdMap in file_mdm_exif/
src/ ExifTagMapper.php - Returns the map of IFD strings to IFD integers.
- ExifTagMapper::getStringToTagMap in file_mdm_exif/
src/ ExifTagMapper.php - Returns the map of TAG strings to IFD/TAG integers.
- ExifTagMapper::getSupportedIfdsMap in file_mdm_exif/
src/ ExifTagMapper.php - Returns the list of supported IFDs.
- ExifTagMapper::getSupportedKeysMap in file_mdm_exif/
src/ ExifTagMapper.php - Returns the list of supported metadata 'keys'.
File
- file_mdm_exif/
src/ ExifTagMapper.php, line 325
Class
- ExifTagMapper
- Provides a mapping service for EXIF ifds and tags.
Namespace
Drupal\file_mdm_exifCode
protected function getCache($id) {
if ($cache = $this->cache
->get("map:exif:{$id}")) {
return $cache;
}
else {
return NULL;
}
}