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 storeMedia($sourceFile, MediaInterface $media, $variant = NULL, $options = array())
 {
     $this->store($sourceFile, $media->getMediaId(), $media->getMediaName(), $media->getMediaType(), $variant, $options);
 }