Unverified Commit df19e701 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
parent 4f77a103
......@@ -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']);
}
......
......@@ -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.
......
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