function template_preprocess_gridstack_preview in GridStack 8
Prepares variables for blazy-preview.html.twig templates.
File
- templates/
gridstack.theme.inc, line 204 - Hooks and preprocess functions for the GridStack module.
Code
function template_preprocess_gridstack_preview(&$variables) {
$element = $variables['element'];
$variables['settings'] = isset($element['#settings']) ? $element['#settings'] : [];
}