function template_preprocess_registration in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 rng.module \template_preprocess_registration()
- 8 rng.module \template_preprocess_registration()
Prepares variables for registration templates.
Default template: registration.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
- ./
rng.module, line 129
Code
function template_preprocess_registration(array &$variables) {
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}