function template_preprocess_blazy_test in Blazy 8
Same name and namespace in other branches
- 8.2 tests/modules/blazy_test/blazy_test.module \template_preprocess_blazy_test()
Prepares variables for blazy-test.html.twig templates.
File
- tests/
modules/ blazy_test/ blazy_test.module, line 18 - Testing various Blazy hooks, etc.
Code
function template_preprocess_blazy_test(&$variables) {
$element = $variables['element'];
$variables['content'] = $element['#children'];
$variables['settings'] = isset($element['#settings']) ? $element['#settings'] : [];
}