Remove unnecessary default container div

This only adds a div to the markup that is not used
to style or arrange the panes within a region.
This commit is contained in:
Paul Weidner 2023-08-25 11:50:02 -07:00 committed by Michael Stenta
parent 237a094e85
commit dd3e9e68b2
1 changed files with 0 additions and 9 deletions

View File

@ -72,15 +72,6 @@ class DashboardController extends ControllerBase {
// Ask modules for dashboard groups.
$build = $this->moduleHandler()->invokeAll('farm_dashboard_groups');
// Default the group #type to container if none was provided.
foreach ($build as $region => $groups) {
foreach ($groups as $name => $group) {
if (!empty($group) && empty($group['#type'])) {
$build[$region][$name]['#type'] = 'container';
}
}
}
// Ask modules for dashboard panes.
$panes = $this->moduleHandler()->invokeAll('farm_dashboard_panes');