Unverified Commit df19e701 authored by Lee Rowlands's avatar Lee Rowlands
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
parent 4f77a103
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -233,6 +233,7 @@ function layout_builder_cron() {
 * Implements hook_plugin_filter_TYPE__CONSUMER_alter().
 */
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.
  unset($definitions['page_title_block']);
}
+1 −0
Original line number Diff line number Diff line
@@ -876,6 +876,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('Main page content');
    $assert_session->linkNotExists('Page title');

    // Verify that Changed block is not present on first section.