function template_preprocess_export_entity in Content Synchronizer 3.x
Same name and namespace in other branches
- 8.2 export_entity.page.inc \template_preprocess_export_entity()
- 8 export_entity.page.inc \template_preprocess_export_entity()
Prepares variables for Export entity templates.
Default template: export_entity.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
- ./
export_entity.page.inc, line 22 - Contains export_entity.page.inc.
Code
function template_preprocess_export_entity(array &$variables) {
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}