function template_preprocess_event_enrollment in Open Social 8.5
Same name and namespace in other branches
- 8.9 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 8 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 8.2 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 8.3 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 8.4 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 8.6 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 8.7 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 8.8 modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 10.3.x modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 10.0.x modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 10.1.x modules/social_features/social_event/event_enrollment.page.inc \template_preprocess_event_enrollment()
- 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];
}
}