|
@@ -22,7 +22,22 @@ use Drupal\Core\Render\Element;
|
|
|
// dpm('edlptheme_page_attachments', $attachments);
|
|
|
// }
|
|
|
|
|
|
-
|
|
|
+/**
|
|
|
+ * Prepares variables for HTML document templates.
|
|
|
+ *
|
|
|
+ * Default template: html.html.twig.
|
|
|
+ *
|
|
|
+ * @param array $variables
|
|
|
+ * An associative array containing:
|
|
|
+ * - page: A render element representing the page.
|
|
|
+ */
|
|
|
+function edlptheme_preprocess_html(&$vars) {
|
|
|
+ $site_config = \Drupal::config('system.site');
|
|
|
+ $head_title = [
|
|
|
+ 'name' => $site_config->get('name'),
|
|
|
+ ];
|
|
|
+ $vars['head_title'] = $head_title;
|
|
|
+}
|
|
|
|
|
|
function edlptheme_preprocess_page(&$vars){
|
|
|
// dsm($vars, 'vars');
|
|
@@ -250,5 +265,5 @@ function edlptheme_preprocess_links__language_block(&$vars){
|
|
|
}
|
|
|
|
|
|
function edlptheme_preprocess_file_link(&$vars){
|
|
|
-
|
|
|
+
|
|
|
}
|