private function resolveResourceThumbnail($defaultImage)
    {
        $baseFolder = $this->getBaseFolder();
        $iconUrl = $baseFolder.DIRECTORY_SEPARATOR.'default_thumbnail.png';
        foreach ($this->getThumbnailBaseFolderPaths() as $path) {
            $imageFilePath = $path.DIRECTORY_SEPARATOR.$defaultImage;

            if (file_exists($imageFilePath) && is_readable($imageFilePath)) {
                $iconUrl = $baseFolder.DIRECTORY_SEPARATOR.$defaultImage;
                break;
            }
        }

        return $iconUrl;
    }
private function resolveResourceThumbnail($defaultImage)
    {
        $baseFolder = $this->getBaseFolder();
        $iconUrl = $baseFolder.DIRECTORY_SEPARATOR.'default_thumbnail.png';
        foreach ($this->getThumbnailBaseFolderPaths() as $path) {
            $imageFilePath = $path.DIRECTORY_SEPARATOR.$defaultImage;

            if (file_exists($imageFilePath) && is_readable($imageFilePath)) {
                $iconUrl = $baseFolder.DIRECTORY_SEPARATOR.$defaultImage;
                break;
            }
        }

        return $iconUrl;
    }
private function resolveResourceThumbnail ( $ defaultImage ) { $ baseFolder = $ this -> getBaseFolder ( ) ; $ iconUrl = $ baseFolder . DIRECTORY_SEPARATOR . 'default_thumbnail.png' ; foreach ( $ this -> getThumbnailBaseFolderPaths ( ) as $ path ) { $ imageFilePath = $ path . DIRECTORY_SEPARATOR . $ defaultImage ; if ( file_exists ( $ imageFilePath ) && is_readable ( $ imageFilePath ) ) { $ iconUrl = $ baseFolder . DIRECTORY_SEPARATOR . $ defaultImage ; break ; } } return $ iconUrl ; }
Resolves the thumbnail resource URL depending on the default image provided.

@param  string $defaultImage The default image of a content.

@return string               The resolved URL if found.
Resolves the thumbnail resource URL depending on the default image provided .