public function TimelineInterface::addEra in Views TimelineJS integration 8.3
Adds a new era to the timeline's eras array.
Parameters
\Drupal\views_timelinejs\TimelineJS\EraInterface $era: The new era.
1 method overrides TimelineInterface::addEra()
- Timeline::addEra in src/
TimelineJS/ Timeline.php - Adds a new era to the timeline's eras array.
File
- src/
TimelineJS/ TimelineInterface.php, line 32
Class
- TimelineInterface
- Provides an interface for defining TimelineJS3 timelines.
Namespace
Drupal\views_timelinejs\TimelineJSCode
public function addEra(EraInterface $era);