Update logo and favicon

This commit is contained in:
Oliver Davies 2020-08-20 07:27:50 +01:00
parent f7b1e41977
commit 70681df30f
7 changed files with 18 additions and 13 deletions

View file

@ -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']);
}
}
}