concrete/src/File/Image/Thumbnail/Path/Resolver.php
protected function determineThumbnailPath(Version $file_version, ThumbnailVersion $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration, $format)
    {
        if ($thumbnail->shouldExistFor($file_version->getAttribute('width'), $file_version->getAttribute('height'), $file_version->getFile())) {
            $path = $thumbnail->getFilePath($file_version, $format);
    
            if ($configuration instanceof DeferredConfigurationInterface) {
                // Lets defer getting the path from the configuration until we know we need to
                return $path;
            }
    
            return $configuration->getRelativePathToFile($path);
        }
    }
protected function determineThumbnailPath(Version $file_version, ThumbnailVersion $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration, $format)
    {
        if ($thumbnail->shouldExistFor($file_version->getAttribute('width'), $file_version->getAttribute('height'), $file_version->getFile())) {
            $path = $thumbnail->getFilePath($file_version, $format);
    
            if ($configuration instanceof DeferredConfigurationInterface) {
                // Lets defer getting the path from the configuration until we know we need to
                return $path;
            }
    
            return $configuration->getRelativePathToFile($path);
        }
    }
protected function determineThumbnailPath ( Version $ file_version , ThumbnailVersion $ thumbnail , StorageLocation $ storage , ConfigurationInterface $ configuration , $ format ) { if ( $ thumbnail -> shouldExistFor ( $ file_version -> getAttribute ( 'width' ) , $ file_version -> getAttribute ( 'height' ) , $ file_version -> getFile ( ) ) ) { $ path = $ thumbnail -> getFilePath ( $ file_version , $ format ) ; if ( $ configuration instanceof DeferredConfigurationInterface ) { // Lets defer getting the path from the configuration until we know we need to return $ path ; } return $ configuration -> getRelativePathToFile ( $ path ) ; } }
Determine the path for a file version thumbnail based on the storage location

NOTE: If you're wanting to change how file paths are determined, a better method
to override would be `->getBuiltThumbnailPath()`

@param \Concrete\Core\Entity\File\Version $file_version
@param \Concrete\Core\File\Image\Thumbnail\Type\Version $thumbnail
@param \Concrete\Core\Entity\File\StorageLocation\StorageLocation $storage
@param \Concrete\Core\File\StorageLocation\Configuration\ConfigurationInterface $configuration
@param string $format
@return string|null
Determine the path for a file version thumbnail based on the storage location