How do I hide the page title based on node type using template_preprocess_page()?
OUTDATED - please use this solution instead ...

In D8 i used

function MYTHEME_preprocess_page(&amp;$variables) {
    if (!empty($variables['node']) &amp;&amp; $variables['node']-&gt;getType() == 'page') {
        $variables['title'] = '';
    }
}


You still find the "node" object but you can't simply call the "type". The variable is protected, so you have to get the value via the function getType(). To get an overview install Devel and print with Kint the methods. This should only be a simple help, but maybe someone can deeper explain the concepts. Is it better to unset $variables['title'] in some way then to use $variables['title'] = ''?