getCustomProperty('legacy_filepath'); if ($legacy) { $legacy = ltrim($legacy, '/'); $dir = dirname($legacy); if ($dir !== '.') { return $dir . '/'; } } return $media->id . '/'; } public function getPathForConversions(Media $media): string { return $this->getPath($media) . 'conversions/'; } public function getPathForResponsiveImages(Media $media): string { return $this->getPath($media) . 'responsive-images/'; } }