Bundle/WidgetBundle/Builder/WidgetFormBuilder.php
public function renderQuantumStyleForms($viewReference, $widgets, Widget $activeWidget)
    {
        $forms = [];
        foreach ($widgets as $key => $widget) {
            $_quantum = $this->convertToString($key);
            $forms[$key]['form'] = $this->buildWidgetStyleForm($widget, $viewReference, $_quantum)->createView();
            $forms[$key]['quantum'] = $_quantum;
            $forms[$key]['active'] = $widget === $activeWidget ? true : false;
        }

        return $forms;
    }
public function renderQuantumStyleForms($viewReference, $widgets, Widget $activeWidget)
    {
        $forms = [];
        foreach ($widgets as $key => $widget) {
            $_quantum = $this->convertToString($key);
            $forms[$key]['form'] = $this->buildWidgetStyleForm($widget, $viewReference, $_quantum)->createView();
            $forms[$key]['quantum'] = $_quantum;
            $forms[$key]['active'] = $widget === $activeWidget ? true : false;
        }

        return $forms;
    }
public function renderQuantumStyleForms ( $ viewReference , $ widgets , Widget $ activeWidget ) { $ forms = [ ] ; foreach ( $ widgets as $ key => $ widget ) { $ _quantum = $ this -> convertToString ( $ key ) ; $ forms [ $ key ] [ 'form' ] = $ this -> buildWidgetStyleForm ( $ widget , $ viewReference , $ _quantum ) -> createView ( ) ; $ forms [ $ key ] [ 'quantum' ] = $ _quantum ; $ forms [ $ key ] [ 'active' ] = $ widget === $ activeWidget ? true : false ; } return $ forms ; }
Generates style forms for each quantum.

@param $viewReference
@param ArrayCollection|Widget[] $widgets
@param Widget                   $activeWidget
@param null                     $quantum

@return Form[]
Generates style forms for each quantum .