How can I print a user uploaded logo (via the theme appearance UI) in a twig template?
For example, in block--system-branding-block.html.twig
we can use
Available variables:
- site_logo: Logo for site as defined in Appearance or theme settings.
<img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />
What do I need to do to make that variable (or a custom variable) available to another twig template, like menu.html.twig
?
I have found many solutions, but all them involved hardcoding the logo file name or location, both of which are obviously not user friendly.