function template_preprocess_apigee_entity_list in Apigee Edge 8
Prepares variables for Apigee entity list templates.
Default template: apigee-entity-list.html.twig.
File
- ./
apigee_edge.module, line 205 - Copyright 2018 Google Inc.
Code
function template_preprocess_apigee_entity_list(array &$variables) {
$variables['view_mode'] = $variables['elements']['#view_mode'];
$variables['entity_type_id'] = $variables['elements']['#entity_type']
->id();
$variables += [
'content' => [],
];
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}