concrete/src/Http/Middleware/ThumbnailMiddleware.php
private function generateThumbnail(array $thumbnail)
    {
        $file = $this->getEntityManager()->find(File::class, $thumbnail['fileID']);

        if ($this->attemptBuild($file, $thumbnail)) {
            $result = true;
        } else {
            $this->failBuild($file, $thumbnail);
            $result = false;
        }

        return $result;
    }
private function generateThumbnail(array $thumbnail)
    {
        $file = $this->getEntityManager()->find(File::class, $thumbnail['fileID']);

        if ($this->attemptBuild($file, $thumbnail)) {
            $result = true;
        } else {
            $this->failBuild($file, $thumbnail);
            $result = false;
        }

        return $result;
    }
private function generateThumbnail ( array $ thumbnail ) { $ file = $ this -> getEntityManager ( ) -> find ( File :: class , $ thumbnail [ 'fileID' ] ) ; if ( $ this -> attemptBuild ( $ file , $ thumbnail ) ) { $ result = true ; } else { $ this -> failBuild ( $ file , $ thumbnail ) ; $ result = false ; } return $ result ; }
Generate a thumbnail.

@param array $thumbnail

@return bool Returns true if success, false on failure
Generate a thumbnail .