You are here

function template_preprocess_nivo_slider_wrapper in Nivo Slider 8

Same name and namespace in other branches
  1. 7 themes/nivo_slider.theme.inc \template_preprocess_nivo_slider_wrapper()

Preprocess for the template nivo-slider-wrapper.html.twig

File

templates/theme.inc, line 6

Code

function template_preprocess_nivo_slider_wrapper(&$variables) {
  $config = \Drupal::config('nivo_slider.settings');
  $variables['banners'] = nivo_slider_slider();
  $variables['themes'] = $config
    ->get('options.theme');
  $variables['html_captions'] = $config
    ->get('html_captions');
}