Pre-process node type for each node and print within region.html.twig template I'm trying to figure out how I can check the node type/content type for each node using pre-process and print it on a region template (region.html.twig)

It seems to be returning NULL

function iom_preprocess_node(&amp;$variables) {
    $node = $variables["node"];
    $variables['content_type'] = load($node-&gt;bundle())-&gt;label();
}


{{ content_type }}
You need to use preprocess region:

function iom_preprocess_region(&amp;$variables) {
    $node = $variables["node"];
    $variables['content_type'] = $node-&gt;getType();
}


Clear/flush cache after adding it.