event_enrollment.page.inc in Open Social 8
Same filename and directory in other branches
- 8.9 modules/social_features/social_event/event_enrollment.page.inc
- 8.2 modules/social_features/social_event/event_enrollment.page.inc
- 8.3 modules/social_features/social_event/event_enrollment.page.inc
- 8.4 modules/social_features/social_event/event_enrollment.page.inc
- 8.5 modules/social_features/social_event/event_enrollment.page.inc
- 8.6 modules/social_features/social_event/event_enrollment.page.inc
- 8.7 modules/social_features/social_event/event_enrollment.page.inc
- 8.8 modules/social_features/social_event/event_enrollment.page.inc
- 10.3.x modules/social_features/social_event/event_enrollment.page.inc
- 10.0.x modules/social_features/social_event/event_enrollment.page.inc
- 10.1.x modules/social_features/social_event/event_enrollment.page.inc
- 10.2.x modules/social_features/social_event/event_enrollment.page.inc
Contains event_enrollment.page.inc..
Page callback for Event enrollment entities.
File
modules/social_features/social_event/event_enrollment.page.incView source
<?php
/**
* @file
* Contains event_enrollment.page.inc..
*
* Page callback for Event enrollment entities.
*/
use Drupal\Core\Render\Element;
/**
* Prepares variables for Event enrollment templates.
*
* Default template: event_enrollment.html.twig.
*
* @param array $variables
* An associative array containing:
* - elements: An associative array containing the user information and any
* - attributes: HTML attributes for the containing element.
*/
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];
}
}Functions
|
Name |
Description |
|---|---|
| template_preprocess_event_enrollment | Prepares variables for Event enrollment templates. |