private function getThumbnailUri(Thumbnail $thumb)
    {
        $fileName = $thumb->getFileName();
        if ($fileName === null || $fileName === '') {
            return false;
        }

        return $this->urlGenerator->generate(
            'thumb',
            [
                'width'  => $thumb->getWidth(),
                'height' => $thumb->getHeight(),
                'action' => $thumb->getScale(),
                'file'   => $thumb->getFileName(),
            ]
        );
    }
private function getThumbnailUri(Thumbnail $thumb)
    {
        $fileName = $thumb->getFileName();
        if ($fileName === null || $fileName === '') {
            return false;
        }

        return $this->urlGenerator->generate(
            'thumb',
            [
                'width'  => $thumb->getWidth(),
                'height' => $thumb->getHeight(),
                'action' => $thumb->getScale(),
                'file'   => $thumb->getFileName(),
            ]
        );
    }
private function getThumbnailUri ( Thumbnail $ thumb ) { $ fileName = $ thumb -> getFileName ( ) ; if ( $ fileName === null || $ fileName === '' ) { return false ; } return $ this -> urlGenerator -> generate ( 'thumb' , [ 'width' => $ thumb -> getWidth ( ) , 'height' => $ thumb -> getHeight ( ) , 'action' => $ thumb -> getScale ( ) , 'file' => $ thumb -> getFileName ( ) , ] ) ; }
Get the thumbnail relative URI, using width, height and action.

@param Thumbnail $thumb

@return string
Get the thumbnail relative URI using width height and action .