Access a field from page.html.twig template I would like to display an image above the page header.
The image is stored in a field (its name is “image”) related to a node (its type is “article”).
I can display {{content.field_image}} using the node--article.html.twig template.
But as the  

&lt;h1 class="page-header"&gt;{{ title }}&lt;/h1&gt; 


lives in the page-title.html.twig template I can no longer access the image.

Can someone help me finding the right way to write a preprocess function?
I already used  

function [my_theme]_preprocess_page(&amp;$variables) {
  $site_config = \Drupal::config('system.site');
  $variables['site_name'] = $site_config-&gt;get('name');
  $variables['site_slogan'] = $site_config-&gt;get('slogan');
}


But I can't find a way to do the same again with my image
The page title has its own preprocess hook. You may want to use hook_preprocess_HOOK() to add your image to the variables. As it is using the page-title.html.twig template, the theme registry HOOK is called 'page_title'.

Following is an excerpt from a theme's page title preprocess function of a D8 theme that is adding the URI of an image with an image style applied along with the page title. Maybe you find it useful as inspiration for your use case:

use Drupal\image\Entity\ImageStyle;

/**
 * Implements hook_preprocess_HOOK() for page title images.
 */
function mytheme_preprocess_page_title(array &amp;$variables) {
  $image = '';

  // Load the image entity from current route.
  if (
    !empty($node = \Drupal::routeMatch()-&gt;getParameter('node')) &amp;&amp;
    $node-&gt;getType() == 'page' &amp;&amp;
    $node-&gt;hasField('field_image') &amp;&amp;
    $image_entity = $node-&gt;field_image-&gt;entity
  ) {
    $style = ImageStyle::load('title_image');
    $image = ($style-&gt;buildUri($image_entity-&gt;getFileUri());
  }

  $variables['image'] = $image;
}