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 = language(Language::TYPE_INTERFACE);
$variables['title'] = check_plain($variables['title']);
$variables['base_url'] = $base_url;
$variables['language'] = $language_interface;
$variables['language_rtl'] = $language_interface->direction == Language::DIRECTION_RTL;
$variables['head'] = drupal_get_html_head();
// HTML element attributes.
$attributes = array();
$attributes['lang'] = $language_interface->langcode;
$attributes['dir'] = $language_interface->direction ? 'rtl' : 'ltr';
$variables['html_attributes'] = new Attribute($attributes);
}