In my Basic page content type I have an image field called sidebar_image.
I have placed a block to my header region called header_block which is using a custom twig template. I'm wondering how I can get the Basic page sidebar_image to be displayed in my header_block twig template:
<h1>Some header</h1>
<img src="{{ sidebar_image }}" />
and in the preprocess function:
THEME_preprocess_block__header_block {
$variables['sidebar_image'] = // get current pages sidebar image URL
}