You are here

public function Background::__construct in Views TimelineJS integration 8.3

Constructs a new Background object.

Parameters

string $url: The background image URL.

string $color: The background color.

File

src/TimelineJS/Background.php, line 34

Class

Background
Defines a TimelineJS3 background object.

Namespace

Drupal\views_timelinejs\TimelineJS

Code

public function __construct($url = '', $color = '') {
  $this->url = $url;
  $this->color = $color;
}