function template_preprocess_slick_test in Slick Carousel 8.2
Same name and namespace in other branches
- 8 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'] : [];
}