protected function ImagemagickIdentify::doRemoveMetadata in ImageMagick 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/FileMetadata/ImagemagickIdentify.php \Drupal\imagemagick\Plugin\FileMetadata\ImagemagickIdentify::doRemoveMetadata()
File
- src/
Plugin/ FileMetadata/ ImagemagickIdentify.php, line 196
Class
- ImagemagickIdentify
- FileMetadata plugin for ImageMagick's identify results.
Namespace
Drupal\imagemagick\Plugin\FileMetadataCode
protected function doRemoveMetadata($key) {
$this
->validateKey($key, __FUNCTION__);
switch ($key) {
case 'source_local_path':
if (isset($this->metadata['source_local_path'])) {
unset($this->metadata['source_local_path']);
return TRUE;
}
return FALSE;
default:
return FALSE;
}
}