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
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | after_patch.png | 129.71 KB | hardik_patel_12 |
| #6 | before_patch.png | 105.13 KB | hardik_patel_12 |

Comments
Comment #2
rajab natshahComment #3
rajab natshahComment #4
rajab natshahComment #5
rajab natshahComment #6
hardik_patel_12 commentedHi, @RajabNatshah thanks for the patch.
Everything looks good to me.
Comment #7
yogeshmpawarReviewing the patch.
Comment #9
yogeshmpawarCommitted & Pushed to 8.x-1.x