Bundle/WidgetMapBundle/Manager/WidgetMapManager.php
protected function getChildrenByView(WidgetMap $widgetMap)
    {
        $beforeChilds = $widgetMap->getContextualChildren(WidgetMap::POSITION_BEFORE);
        $afterChilds = $widgetMap->getContextualChildren(WidgetMap::POSITION_AFTER);

        $childrenByView['views'] = [];
        $childrenByView['before'] = [];
        $childrenByView['after'] = [];
        foreach ($beforeChilds as $beforeChild) {
            $view = $beforeChild->getView();
            $childrenByView['views'][] = $view;
            $childrenByView['before'][$view->getId()] = $beforeChild;
        }
        foreach ($afterChilds as $afterChild) {
            $view = $afterChild->getView();
            $childrenByView['views'][] = $view;
            $childrenByView['after'][$view->getId()] = $afterChild;
        }

        return $childrenByView;
    }
protected function getChildrenByView(WidgetMap $widgetMap)
    {
        $beforeChilds = $widgetMap->getContextualChildren(WidgetMap::POSITION_BEFORE);
        $afterChilds = $widgetMap->getContextualChildren(WidgetMap::POSITION_AFTER);

        $childrenByView['views'] = [];
        $childrenByView['before'] = [];
        $childrenByView['after'] = [];
        foreach ($beforeChilds as $beforeChild) {
            $view = $beforeChild->getView();
            $childrenByView['views'][] = $view;
            $childrenByView['before'][$view->getId()] = $beforeChild;
        }
        foreach ($afterChilds as $afterChild) {
            $view = $afterChild->getView();
            $childrenByView['views'][] = $view;
            $childrenByView['after'][$view->getId()] = $afterChild;
        }

        return $childrenByView;
    }
protected function getChildrenByView ( WidgetMap $ widgetMap ) { $ beforeChilds = $ widgetMap -> getContextualChildren ( WidgetMap :: POSITION_BEFORE ) ; $ afterChilds = $ widgetMap -> getContextualChildren ( WidgetMap :: POSITION_AFTER ) ; $ childrenByView [ 'views' ] = [ ] ; $ childrenByView [ 'before' ] = [ ] ; $ childrenByView [ 'after' ] = [ ] ; foreach ( $ beforeChilds as $ beforeChild ) { $ view = $ beforeChild -> getView ( ) ; $ childrenByView [ 'views' ] [ ] = $ view ; $ childrenByView [ 'before' ] [ $ view -> getId ( ) ] = $ beforeChild ; } foreach ( $ afterChilds as $ afterChild ) { $ view = $ afterChild -> getView ( ) ; $ childrenByView [ 'views' ] [ ] = $ view ; $ childrenByView [ 'after' ] [ $ view -> getId ( ) ] = $ afterChild ; } return $ childrenByView ; }
Find return all the given WidgetMap children for each view where it's related.

@param WidgetMap $widgetMap

@return mixed
Find return all the given WidgetMap children for each view where it s related .