You are here

function template_preprocess_group_content_menu in Group Content Menu 8

Prepares variables for group content menu templates.

Default template: group-content-menu.html.twig.

Parameters

array $variables: An associative array containing:

  • elements: An associative array containing the group content menu information and any fields attached to the entity.
  • attributes: HTML attributes for the containing element.

File

./group_content_menu.module, line 46
Provides a group content menu entity type.

Code

function template_preprocess_group_content_menu(array &$variables) {
  foreach (Element::children($variables['elements']) as $key) {
    $variables['content'][$key] = $variables['elements'][$key];
  }
}