Bundle/CoreBundle/Entity/View.php
public function getWidgetMapsForViewAndTemplates()
    {
        $widgetMaps = [];

        foreach ($this->getWidgetMaps() as $_widgetMap) {
            $widgetMaps[] = $_widgetMap;
        }

        if ($template = $this->getTemplate()) {
            $templateWidgetMaps = $template->getWidgetMapsForViewAndTemplates();
            $widgetMaps = array_merge($widgetMaps, $templateWidgetMaps);
        }

        return $widgetMaps;
    }
public function getWidgetMapsForViewAndTemplates()
    {
        $widgetMaps = [];

        foreach ($this->getWidgetMaps() as $_widgetMap) {
            $widgetMaps[] = $_widgetMap;
        }

        if ($template = $this->getTemplate()) {
            $templateWidgetMaps = $template->getWidgetMapsForViewAndTemplates();
            $widgetMaps = array_merge($widgetMaps, $templateWidgetMaps);
        }

        return $widgetMaps;
    }
public function getWidgetMapsForViewAndTemplates ( ) { $ widgetMaps = [ ] ; foreach ( $ this -> getWidgetMaps ( ) as $ _widgetMap ) { $ widgetMaps [ ] = $ _widgetMap ; } if ( $ template = $ this -> getTemplate ( ) ) { $ templateWidgetMaps = $ template -> getWidgetMapsForViewAndTemplates ( ) ; $ widgetMaps = array_merge ( $ widgetMaps , $ templateWidgetMaps ) ; } return $ widgetMaps ; }
Get WidgetMaps for View and its Templates.

@return WidgetMap[]
Get WidgetMaps for View and its Templates .