public function TimelineInterface::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.
1 method overrides TimelineInterface::addEvent()
- Timeline::addEvent in src/
TimelineJS/ Timeline.php - Adds a new slide to the timeline's events array.
File
- src/
TimelineJS/ TimelineInterface.php, line 16
Class
- TimelineInterface
- Provides an interface for defining TimelineJS3 timelines.
Namespace
Drupal\views_timelinejs\TimelineJSCode
public function addEvent(SlideInterface $slide);