Having the remove all blocks will lose default integration with other modules like Social Auth.
It's only allowing [Main page content]

  // Remove all blocks from the content region (such as page title and local
  // tasks) except the "Main page content" block.
  foreach (Element::children($variables['page']['content']) as $element) {
    if (isset($variables['page']['content'][$element]['#plugin_id']) && $variables['page']['content'][$element]['#plugin_id'] == 'system_main_block') {
      $variables['page']['content'] = $variables['page']['content'][$element];
      break;
    }
  }

Some sites may want to add the Title of the page or a custom title, or more options.
And custom info or functional blocks before or after the default login form

Better login with social auth block

Comments

RajabNatshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
StatusFileSize
new36.83 KB
rajab natshah’s picture

StatusFileSize
new882 bytes
rajab natshah’s picture

Assigned: rajab natshah » Unassigned
Status: Active » Needs review
rajab natshah’s picture

Title: Fix remove all blocks in content region. Resulted on losing default integration with other modules » Fix remove all blocks in the content region. Resulted in losing default integration with other modules
Issue summary: View changes
hardik_patel_12’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new105.13 KB
new129.71 KB

Hi, @RajabNatshah thanks for the patch.
Everything looks good to me.

yogeshmpawar’s picture

Reviewing the patch.

yogeshmpawar’s picture

Status: Reviewed & tested by the community » Fixed

Committed & Pushed to 8.x-1.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.