You are here

function template_preprocess_splashify_group_entity in Splashify 8.2

Prepares variables for Splashify group entity templates.

Default template: splashify_group_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_group_entity.page.inc, line 24
Contains splashify_group_entity.page.inc.

Code

function template_preprocess_splashify_group_entity(array &$variables) {

  // Fetch SplashifyGroupEntity Entity Object.
  $splashify_group_entity = $variables['elements']['#splashify_group_entity'];

  // Helpful $content variable for templates.
  foreach (Element::children($variables['elements']) as $key) {
    $variables['content'][$key] = $variables['elements'][$key];
  }
}