protected function TimelineJS::buildTitleSlide in Views TimelineJS integration 8.3
Builds a timeline title slide from the current views data row.
Return value
\Drupal\views_timelinejs\TimelineJS\TitleSlide A slide object.
1 call to TimelineJS::buildTitleSlide()
- TimelineJS::render in src/
Plugin/ views/ style/ TimelineJS.php - Render the display in this style.
File
- src/
Plugin/ views/ style/ TimelineJS.php, line 480
Class
- TimelineJS
- Style plugin to render items as TimelineJS3 slides.
Namespace
Drupal\views_timelinejs\Plugin\views\styleCode
protected function buildTitleSlide() {
$text = $this
->buildText();
$slide = new TitleSlide($text);
$slide
->setBackground($this
->buildBackground());
$media = $this
->buildMedia();
if (!empty($media)) {
$slide
->setMedia($media);
}
$slide
->setUniqueId($this
->buildUniqueId());
return $slide;
}