head title always = only site name
This commit is contained in:
@@ -22,7 +22,22 @@ use Drupal\Core\Render\Element;
|
|||||||
// dpm('edlptheme_page_attachments', $attachments);
|
// 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){
|
function edlptheme_preprocess_page(&$vars){
|
||||||
// dsm($vars, 'vars');
|
// dsm($vars, 'vars');
|
||||||
|
|||||||
Reference in New Issue
Block a user