Print theme logo path in my twig file In mytheme.theme file I have:

function mytheme_preprocess_page(&amp;$variables) {
      $variables['logopath'] = '/' . drupal_get_path('theme','mytheme') . '/logo.png';
}


In my menu--main.html.twig I have:

&lt;img class="img-responsive" src="{{ logopath }}" /&gt;


But it's not printing my logo? The src is still empty?
You use different theme hooks page and menu.

If you want to use the variable in 

menu--main.html.twig


use

function mytheme_preprocess_menu(&amp;$variables) {