You are here

public function TitleSlide::__construct in Views TimelineJS integration 8.3

Constructs a new TitleSlide object.

Parameters

\Drupal\views_timelinejs\TimelineJS\TextInterface|null $text: Text to display on the title slide.

Overrides Slide::__construct

File

src/TimelineJS/TitleSlide.php, line 16

Class

TitleSlide
Defines a TimelineJS3 title slide.

Namespace

Drupal\views_timelinejs\TimelineJS

Code

public function __construct(TextInterface $text = NULL) {
  if (!empty($text)) {
    $this->text = $text;
  }
}