Update logo and favicon
This commit is contained in:
parent
f7b1e41977
commit
70681df30f
7 changed files with 18 additions and 13 deletions
|
@ -25,15 +25,3 @@ function opdavies_preprocess_page(array &$variables): void {
|
|||
$variables['#attached']['library'][] = 'opdavies/twitter';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_preprocess_HOOK().
|
||||
*/
|
||||
function opdavies_preprocess_block(array &$variables): void {
|
||||
if ($variables['base_plugin_id'] == 'system_branding_block') {
|
||||
$variables['site_logo'] = '';
|
||||
if ($variables['content']['site_logo']['#access'] && $variables['content']['site_logo']['#uri']) {
|
||||
$variables['site_logo'] = str_replace('.svg', '.png', $variables['content']['site_logo']['#uri']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue