You are here

protected function ImagemagickIdentify::doRemoveMetadata in ImageMagick 8.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/FileMetadata/ImagemagickIdentify.php \Drupal\imagemagick\Plugin\FileMetadata\ImagemagickIdentify::doRemoveMetadata()

File

src/Plugin/FileMetadata/ImagemagickIdentify.php, line 183

Class

ImagemagickIdentify
FileMetadata plugin for ImageMagick's identify results.

Namespace

Drupal\imagemagick\Plugin\FileMetadata

Code

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;
  }
}