template_preprocess_book_export_html(&$variables)
Prepares variables for book export templates.
Default template: book-export-html.html.twig.
array $variables: An associative array containing:
function template_preprocess_book_export_html(&$variables) { global $base_url; $language_interface = \Drupal::languageManager()->getCurrentLanguage(); $variables['base_url'] = $base_url; $variables['language'] = $language_interface; $variables['language_rtl'] = ($language_interface->getDirection() == LanguageInterface::DIRECTION_RTL); // HTML element attributes. $attributes = array(); $attributes['lang'] = $language_interface->getId(); $attributes['dir'] = $language_interface->getDirection(); $variables['html_attributes'] = new Attribute($attributes); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!book!book.module/function/template_preprocess_book_export_html/8.1.x