function template_preprocess_flipping_book in Flipping Book 8
Prepares variables for Flipping Book templates.
Default template: flipping_book.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
- ./
flipping_book.page.inc, line 22 - Contains flipping_book.page.inc.
Code
function template_preprocess_flipping_book(array &$variables) {
// Helpful $content variable for templates.
foreach (Element::children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}
}