public function getImageSetBySlug($slug)
    {
        $imageSet = $this->getImageSet();
        foreach ($imageSet as $set) {
            if ($set->slug == $slug) {
                return $set;
            }
        }

        return null;
    }
public function getImageSetBySlug($slug)
    {
        $imageSet = $this->getImageSet();
        foreach ($imageSet as $set) {
            if ($set->slug == $slug) {
                return $set;
            }
        }

        return null;
    }
public function getImageSetBySlug ( $ slug ) { $ imageSet = $ this -> getImageSet ( ) ; foreach ( $ imageSet as $ set ) { if ( $ set -> slug == $ slug ) { return $ set ; } } return null ; }
Get Image by slug

@param $slug

@return \stdClass
Get Image by slug