I defined a custom route in a custom module:
mymodule.overviewpage:
path: '/mymodule-overview'
defaults:
_controller: '\Drupal\mymodule\Controller\PageOverviewController::content'
_title: 'Overview'
requirements:
_permission: 'access content'
Here is the controller:
class PageOverviewController extends ControllerBase {
public function content() {
return array(
'#markup' => 'hello'
);
}
}
This route is working fine, I see the "hello" text when entering this path in my project but I do not see the page title. The page title "Overview" is used in the title tag in head of the HTML page but there is no page title block - it is not even rendered. Changing to Bartik theme I see the page title "Overview".
I know found out that the visibility of this block was set: there was a checkbox checked which defined the block to be hidden when on a node page of a special content type/ node bundle:
My question: why is the page title block not visible on panel or view generated pages or on custom routes? What should I add to avoid such a behavior? Is there a way to hide the block for special contenty types without hiding it elsewhere?