Drupal 8. Друпал 8

function mytheme_preprocess_block(&$variables) {
if ($variables['base_plugin_id'] == 'system_branding_block') {
$variables['site_logo'] = '/newlogo.jpg';
}
}

function hook_preprocess(&$variables) {

$variables['site_logo'];

}