function template_preprocess_splashify_entity in Splashify 8.2
Prepares variables for Splashify entity templates.
Default template: splashify_entity.html.twig.
Parameters
array $variables: An associative array containing:
- elements: An associative array containing the user information and any
- attributes: HTML attributes for the containing element.
File
- ./
splashify_entity.page.inc, line 24 - Contains splashify_entity.page.inc.
Code
function template_preprocess_splashify_entity(array &$variables) {
// Fetch SplashifyEntity Entity Object.
$splashify_entity = $variables['elements']['#splashify_entity'];
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}