You are here

public function Slide::setMedia in Views TimelineJS integration 8.3

Sets the media for this slide.

Parameters

\Drupal\views_timelinejs\TimelineJS\MediaInterface $media: The media object.

Overrides SlideInterface::setMedia

File

src/TimelineJS/Slide.php, line 96

Class

Slide
Defines a TimelineJS3 slide.

Namespace

Drupal\views_timelinejs\TimelineJS

Code

public function setMedia(MediaInterface $media) {
  $this->media = $media;
}