public function Timeline::addEvent in Views TimelineJS integration 8.3
Adds a new slide to the timeline's events array.
Parameters
\Drupal\views_timelinejs\TimelineJS\SlideInterface $slide: The new slide.
Overrides TimelineInterface::addEvent
File
- src/
TimelineJS/ Timeline.php, line 55
Class
- Timeline
- Defines a TimelineJS3 timeline.
Namespace
Drupal\views_timelinejs\TimelineJSCode
public function addEvent(SlideInterface $slide) {
$this->events[] = $slide;
}