You are here

public function TimelineJS::__construct in Views TimelineJS integration 8.3

Constructs a TimelineJS object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Config\ImmutableConfig $module_configuration: The Views TimelineJS module's configuration.

Overrides PluginBase::__construct

File

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

Class

TimelineJS
Style plugin to render items as TimelineJS3 slides.

Namespace

Drupal\views_timelinejs\Plugin\views\style

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ImmutableConfig $module_configuration) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configuration['library_location'] = $module_configuration
    ->get('library_location');
}