public function locateSrcFilter(MediaInterface $media, $variant = NULL, $fallbackToDefaultVariant = true, $options = array())
 {
     try {
         if ($media->isMediaExternal()) {
             return $media->getMediaName();
         }
         $url = $this->mediaStorage->locateMedia($media, $variant, $fallbackToDefaultVariant, $options);
         return $url;
     } catch (CannotLocateMediaException $e) {
         if ($this->debug) {
             throw $e;
         }
     }
     return "";
 }
 /**
  * {@inheritDoc}
  */
 public function store($sourceFile, $id, $name, $type, $variant = NULL, $options = array())
 {
     $this->stored[] = array('id' => $id, 'name' => $name, 'type' => $type, 'variant' => $variant, 'source' => (string) $sourceFile);
     return $this->originalMediaStorage->store($sourceFile, $id, $name, $type, $variant, $options);
 }