function template_preprocess_redhen_org in RedHen CRM 8
Prepares variables for Org templates.
Default template: redhen_org.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/
redhen_org/ redhen_org.page.inc, line 24 - Contains redhen_org.page.inc..
Code
function template_preprocess_redhen_org(array &$variables) {
// Fetch Org Entity Object.
$redhen_org = $variables['elements']['#redhen_org'];
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}