How do you render a Node's Last Saved date in a Region Footer (ie, inside a Block on every page)? I'm new to Drupal (8) and have no PHP experience, but I've managed to get this interesting CMS doing just about everything I need by playing with Twigs.

I cannot for the life of me figure out how to get a Page's "Last Saved" date to render in the footer block though.

In the Node twig I can add this, and it works perfectly:

{{ node.changed.value|date("d/m/Y H:i") }}


But in the region--footer.html.twig (which is an included block at the base of every page on the site, and where I wish to render this information) all I get back, from every combination I try, is the current date/time of when the page loads in the browser. Actually, i think it is the current server time.

Obviously there's something I just don't get about how Drupal works! 

Can anyone offer a newbie some help in language I might understand?

Cheers,
mrEdge
I think you can add to the yourtheme.theme file next thinks;

function yourtheme_preprocess_region(&amp;$vars) {
  $vars['node'] = \Drupal::routeMatch()-&gt;getParameter('node');
}


and afterwards in your twig template each region will have available variable node. 

{% if node %}
  {{ node.changed.value|date("d/m/Y H:i") }}
{% endif %}


Don't forget to clear cache.