diff --git a/core/modules/layout_builder/layout_builder.module b/core/modules/layout_builder/layout_builder.module index 1bd16a02a626a9daf1105ddb5f367143e8710d32..71265e2d46c64d08cd47b45812141a216f606468 100644 --- a/core/modules/layout_builder/layout_builder.module +++ b/core/modules/layout_builder/layout_builder.module @@ -174,6 +174,14 @@ function layout_builder_cron() { } } +/** + * Implements hook_plugin_filter_TYPE__CONSUMER_alter(). + */ +function layout_builder_plugin_filter_block__layout_builder_alter(array &$definitions, array $extra) { + // @todo Restore the page title block in https://www.drupal.org/node/2938129. + unset($definitions['page_title_block']); +} + /** * Implements hook_plugin_filter_TYPE_alter(). */ diff --git a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php index b1ddaa7f0f1181a96e9cda09e98a5472704e5f8d..cfa154aa7b0f59ee3b95994b2ce6abac8e211800 100644 --- a/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php +++ b/core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php @@ -514,6 +514,7 @@ public function testLayoutBuilderChooseBlocksAlter() { // Verify that blocks explicitly removed are not present. $assert_session->linkNotExists('Help'); $assert_session->linkNotExists('Sticky at top of lists'); + $assert_session->linkNotExists('Page title'); // Verify that Changed block is not present on first section. $assert_session->linkNotExists('Changed');