diff --git a/core/modules/system/src/Plugin/Block/SystemPageTitleBlock.php b/core/modules/system/src/Plugin/Block/SystemPageTitleBlock.php index e0bd82c..e23785a 100644 --- a/core/modules/system/src/Plugin/Block/SystemPageTitleBlock.php +++ b/core/modules/system/src/Plugin/Block/SystemPageTitleBlock.php @@ -48,7 +48,9 @@ public function defaultConfiguration() { */ public function build() { return [ - 'title' => $this->title, + 'title' => [ + '#markup' => $this->title, + ], ]; } diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 7e9a683..5c327f7 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -816,8 +816,8 @@ function system_preprocess_block(&$variables) { case 'system_page_title_block': $variables['title'] = ''; - if($variables['content']['page_title']['#markup']) { - $variables['title'] = $variables['content']['page_title']['#markup']; + if($variables['content']['title']['#markup']) { + $variables['title'] = $variables['content']['title']['#markup']; } break; } diff --git a/core/profiles/standard/config/install/block.block.seven_page_title.yml b/core/profiles/standard/config/install/block.block.seven_page_title.yml index 8f0049c..30998fa 100644 --- a/core/profiles/standard/config/install/block.block.seven_page_title.yml +++ b/core/profiles/standard/config/install/block.block.seven_page_title.yml @@ -3,7 +3,7 @@ theme: seven weight: -30 status: true langcode: en -region: content +region: header plugin: system_page_title_block settings: id: system_page_title_block