Bundle/WidgetMapBundle/Builder/WidgetMapBuilder.php
protected function removeDeletedWidgetMaps(&$slots)
    {
        foreach ($slots as $slot => $widgetMaps) {
            foreach ($widgetMaps as $key => $widgetMap) {
                if ($widgetMap->getAction() == WidgetMap::ACTION_DELETE) {
                    unset($slots[$slot][$key]);
                }
            }
        }
    }
protected function removeDeletedWidgetMaps(&$slots)
    {
        foreach ($slots as $slot => $widgetMaps) {
            foreach ($widgetMaps as $key => $widgetMap) {
                if ($widgetMap->getAction() == WidgetMap::ACTION_DELETE) {
                    unset($slots[$slot][$key]);
                }
            }
        }
    }
protected function removeDeletedWidgetMaps ( & $ slots ) { foreach ( $ slots as $ slot => $ widgetMaps ) { foreach ( $ widgetMaps as $ key => $ widgetMap ) { if ( $ widgetMap -> getAction ( ) == WidgetMap :: ACTION_DELETE ) { unset ( $ slots [ $ slot ] [ $ key ] ) ; } } } }
If "delete" widgetmaps are found, remove it because they're not rendered.

@param $slots
If delete widgetmaps are found remove it because they re not rendered .