I'm using the
pagetitle core module to render a page title. However, for certain content types I want the
page main title to be the content type label (e.g. "News") and not the node label (e.g. "Drupal 8 released!").
Is there a simple way to achieve it? My first guess was to use the
$variables has no context whatsoever about node, node type, etc...