plugin/slideshow/Entity/Resource/Slideshow.php
public function addSlide(Slide $slide)
    {
        if (!$this->slides->contains($slide)) {
            $this->slides->add($slide);
            $slide->setSlideshow($this);
        }
    }
public function addSlide(Slide $slide)
    {
        if (!$this->slides->contains($slide)) {
            $this->slides->add($slide);
            $slide->setSlideshow($this);
        }
    }
public function addSlide ( Slide $ slide ) { if ( ! $ this -> slides -> contains ( $ slide ) ) { $ this -> slides -> add ( $ slide ) ; $ slide -> setSlideshow ( $ this ) ; } }
Add a slide to the slideshow.

@param Slide $slide
Add a slide to the slideshow .