You are here

function template_preprocess_slick_test in Slick Carousel 8

Same name and namespace in other branches
  1. 8.2 tests/modules/slick_test/slick_test.module \template_preprocess_slick_test()

Prepares variables for slick-test.html.twig templates.

File

tests/modules/slick_test/slick_test.module, line 18
Testing Slick.

Code

function template_preprocess_slick_test(&$variables) {
  $element = $variables['element'];
  $variables['content'] = $element['#children'];
  $variables['settings'] = isset($element['#settings']) ? $element['#settings'] : [];
}