concrete/src/File/Image/Thumbnail/Path/Resolver.php
protected function getPathFromConfiguration($path, ConfigurationInterface $configuration)
    {
        if ($configuration->hasRelativePath()) {
            return $configuration->getRelativePathToFile($path);
        }

        if ($configuration->hasPublicURL()) {
            return $configuration->getPublicURLToFile($path);
        }

        throw new \InvalidArgumentException('Thumbnail configuration doesn\'t support Paths or URLs');
    }
protected function getPathFromConfiguration($path, ConfigurationInterface $configuration)
    {
        if ($configuration->hasRelativePath()) {
            return $configuration->getRelativePathToFile($path);
        }

        if ($configuration->hasPublicURL()) {
            return $configuration->getPublicURLToFile($path);
        }

        throw new \InvalidArgumentException('Thumbnail configuration doesn\'t support Paths or URLs');
    }
protected function getPathFromConfiguration ( $ path , ConfigurationInterface $ configuration ) { if ( $ configuration -> hasRelativePath ( ) ) { return $ configuration -> getRelativePathToFile ( $ path ) ; } if ( $ configuration -> hasPublicURL ( ) ) { return $ configuration -> getPublicURLToFile ( $ path ) ; } throw new \ InvalidArgumentException ( 'Thumbnail configuration doesn\'t support Paths or URLs' ) ; }
Get the path from a configuration object
@param string $path
@param \Concrete\Core\File\StorageLocation\Configuration\ConfigurationInterface $configuration
@return string
Get the path from a configuration object