You are here

function template_preprocess_registration in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 rng.module \template_preprocess_registration()
  2. 3.x 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];
  }
}