Unverified Commit 01fcb8db authored by larowlan's avatar larowlan
Browse files

Issue #3218766 by tim.plunkett, gabesullice: Adding a SystemMainBlock to a...

Issue #3218766 by tim.plunkett, gabesullice: Adding a SystemMainBlock to a layout builder layout causes a fatal error and should not be available

(cherry picked from commit df19e701)
parent 90a61c2e
...@@ -233,6 +233,7 @@ function layout_builder_cron() { ...@@ -233,6 +233,7 @@ function layout_builder_cron() {
* Implements hook_plugin_filter_TYPE__CONSUMER_alter(). * Implements hook_plugin_filter_TYPE__CONSUMER_alter().
*/ */
function layout_builder_plugin_filter_block__layout_builder_alter(array &$definitions, array $extra) { function layout_builder_plugin_filter_block__layout_builder_alter(array &$definitions, array $extra) {
unset($definitions['system_main_block']);
// @todo Restore the page title block in https://www.drupal.org/node/2938129. // @todo Restore the page title block in https://www.drupal.org/node/2938129.
unset($definitions['page_title_block']); unset($definitions['page_title_block']);
} }
......
...@@ -876,6 +876,7 @@ public function testLayoutBuilderChooseBlocksAlter() { ...@@ -876,6 +876,7 @@ public function testLayoutBuilderChooseBlocksAlter() {
// Verify that blocks explicitly removed are not present. // Verify that blocks explicitly removed are not present.
$assert_session->linkNotExists('Help'); $assert_session->linkNotExists('Help');
$assert_session->linkNotExists('Sticky at top of lists'); $assert_session->linkNotExists('Sticky at top of lists');
$assert_session->linkNotExists('Main page content');
$assert_session->linkNotExists('Page title'); $assert_session->linkNotExists('Page title');
// Verify that Changed block is not present on first section. // Verify that Changed block is not present on first section.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment