function template_preprocess_font in Open Social 8.5
Same name and namespace in other branches
- 8 modules/custom/social_font/font.page.inc \template_preprocess_font()
- 8.2 modules/custom/social_font/font.page.inc \template_preprocess_font()
- 8.3 modules/custom/social_font/font.page.inc \template_preprocess_font()
- 8.4 modules/custom/social_font/font.page.inc \template_preprocess_font()
- 8.6 modules/custom/social_font/font.page.inc \template_preprocess_font()
Prepares variables for Font templates.
Default template: font.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
- modules/
custom/ social_font/ font.page.inc, line 22 - Contains font.page.inc.
Code
function template_preprocess_font(array &$variables) {
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}