Newscoop\Image\RenditionService::getRendition PHP Метод

getRendition() публичный Метод

Get rendition by given name
public getRendition ( string $name ) : Newscoop\Image\Rendition
$name string
Результат Newscoop\Image\Rendition
    public function getRendition($name)
    {
        $renditions = $this->getRenditions();
        $rendition = array_key_exists($name, $renditions) ? $renditions[$name] : null;
        if ($rendition !== null) {
            $rendition = $this->orm->getRepository('Newscoop\\Image\\Rendition')->find($rendition->getName());
            $this->orm->persist($rendition);
            $this->orm->flush($rendition);
        }
        return $rendition;
    }