You are here

function template_preprocess_font in Open Social 8.6

Same name and namespace in other branches
  1. 8 modules/custom/social_font/font.page.inc \template_preprocess_font()
  2. 8.2 modules/custom/social_font/font.page.inc \template_preprocess_font()
  3. 8.3 modules/custom/social_font/font.page.inc \template_preprocess_font()
  4. 8.4 modules/custom/social_font/font.page.inc \template_preprocess_font()
  5. 8.5 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];
  }
}