From 26eb12cb0e9ce319d10b2e46c6fafa4c571c9ad5 Mon Sep 17 00:00:00 2001
From: Wim Leers <wim.leers@acquia.com>
Date: Tue, 11 Feb 2025 19:37:58 +0100
Subject: [PATCH 1/2] Do not require the page title block in the XB
 `PageTemplate`.

---
 config/schema/experience_builder.schema.yml | 2 --
 1 file changed, 2 deletions(-)

diff --git a/config/schema/experience_builder.schema.yml b/config/schema/experience_builder.schema.yml
index 61a879f2f2..e90c9c49a3 100644
--- a/config/schema/experience_builder.schema.yml
+++ b/config/schema/experience_builder.schema.yml
@@ -217,8 +217,6 @@ experience_builder.page_template.*:
             presence:
               # In core: `block.system_main_block`. Contrib/custom modules may add additional implementations.
               - Drupal\Core\Block\MainContentBlockPluginInterface
-              # In core: `block.page_title_block`. Contrib/custom modules may add additional implementations.
-              - Drupal\Core\Block\TitleBlockPluginInterface
               # In core: `block.system_messages_block`. Contrib/custom modules may add additional implementations.
               - Drupal\Core\Block\MessagesBlockPluginInterface
       sequence:
-- 
GitLab


From 5c7bd013b82747f19143774f6d365a9553040aba Mon Sep 17 00:00:00 2001
From: Wim Leers <wim.leers@acquia.com>
Date: Tue, 11 Feb 2025 19:44:52 +0100
Subject: [PATCH 2/2] Update test expectations.

---
 tests/src/Kernel/Config/PageTemplateValidationTest.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/src/Kernel/Config/PageTemplateValidationTest.php b/tests/src/Kernel/Config/PageTemplateValidationTest.php
index 72ff8f8d2d..87acf52758 100644
--- a/tests/src/Kernel/Config/PageTemplateValidationTest.php
+++ b/tests/src/Kernel/Config/PageTemplateValidationTest.php
@@ -261,7 +261,6 @@ class PageTemplateValidationTest extends ConfigEntityValidationTestBase {
         'component_trees' => [
           'Configuration for the region "<em class="placeholder">content</em>" (<em class="placeholder">content</em>) is missing.',
           "The 'Drupal\Core\Block\MainContentBlockPluginInterface' component interface must be present.",
-          "The 'Drupal\Core\Block\TitleBlockPluginInterface' component interface must be present.",
           "The 'Drupal\Core\Block\MessagesBlockPluginInterface' component interface must be present.",
         ],
       ],
@@ -273,7 +272,6 @@ class PageTemplateValidationTest extends ConfigEntityValidationTestBase {
         'sidebar_second' => [
           'tree' => self::encodeXBData([
             ComponentTreeStructure::ROOT_UUID => [
-              ['uuid' => 'uuid-main', 'component' => 'block.system_main_block'],
               ['uuid' => 'uuid-messages', 'component' => 'block.system_messages_block'],
             ],
           ]),
@@ -298,7 +296,7 @@ class PageTemplateValidationTest extends ConfigEntityValidationTestBase {
         'breadcrumb' => NULL,
       ],
       'expected_messages' => [
-        'component_trees' => "The 'Drupal\Core\Block\TitleBlockPluginInterface' component interface must be present.",
+        'component_trees' => "The 'Drupal\Core\Block\MainContentBlockPluginInterface' component interface must be present.",
       ],
     ];
 
-- 
GitLab