You are here

function template_preprocess_event_enrollment in Open Social 10.1.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  2. 8 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  3. 8.2 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  4. 8.3 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  5. 8.4 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  6. 8.5 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  7. 8.6 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  8. 8.7 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  9. 8.8 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  10. 10.3.x modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  11. 10.0.x modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
  12. 10.2.x modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()

Prepares variables for Event enrollment templates.

Default template: event_enrollment.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/social_features/social_event/event_enrollment.page.inc, line 22
Contains event_enrollment.page.inc..

Code

function template_preprocess_event_enrollment(array &$variables) {

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