You are here

protected function TimelineJS::prepareScriptPathOption in Views TimelineJS integration 8.3

Sets the timeline script_path option to the library's location.

1 call to TimelineJS::prepareScriptPathOption()
TimelineJS::prepareTimelineOptions in src/Plugin/views/style/TimelineJS.php
Processes timeline options before theming.

File

src/Plugin/views/style/TimelineJS.php, line 830

Class

TimelineJS
Style plugin to render items as TimelineJS3 slides.

Namespace

Drupal\views_timelinejs\Plugin\views\style

Code

protected function prepareScriptPathOption() {
  global $base_url;
  $script_path = $base_url . '/libraries/TimelineJS3/compiled/js';
  $this->options['timeline_config']['script_path'] = $script_path;
}