public function renderSlideShow($slideShowOrTag, array $options = [])
    {
        if (is_string($slideShowOrTag)) {
            $slideShowOrTag = $this->repository->findOneBy(['tag' => $slideShowOrTag]);
        }
        if (!$slideShowOrTag instanceof SlideShow) {
            throw new \InvalidArgumentException("Expected tag or instance of " . SlideShow::class);
        }

        return $this->renderer->render($slideShowOrTag, $options);
    }
public function renderSlideShow($slideShowOrTag, array $options = [])
    {
        if (is_string($slideShowOrTag)) {
            $slideShowOrTag = $this->repository->findOneBy(['tag' => $slideShowOrTag]);
        }
        if (!$slideShowOrTag instanceof SlideShow) {
            throw new \InvalidArgumentException("Expected tag or instance of " . SlideShow::class);
        }

        return $this->renderer->render($slideShowOrTag, $options);
    }
public function renderSlideShow ( $ slideShowOrTag , array $ options = [ ] ) { if ( is_string ( $ slideShowOrTag ) ) { $ slideShowOrTag = $ this -> repository -> findOneBy ( [ 'tag' => $ slideShowOrTag ] ) ; } if ( ! $ slideShowOrTag instanceof SlideShow ) { throw new \ InvalidArgumentException ( "Expected tag or instance of " . SlideShow :: class ) ; } return $ this -> renderer -> render ( $ slideShowOrTag , $ options ) ; }
Returns the slide show config.

@param SlideShow|string $slideShowOrTag
@param array            $options

@return string
Returns the slide show config .