public function onLayoutBoxPreUpdate(EntityEvent $event)
    {
        $resource = $event->getEntity();
        if ($resource instanceof LayoutBox) {
            $request  = $this->getRequestHelper()->getCurrentRequest();
            $settings = $this->getBoxSettingsFromRequest($request);
            $settings = $this->mergeUnmodifiedSettings($resource->getSettings(), $settings);
            $resource->setSettings($settings);
        }
    }
public function onLayoutBoxPreUpdate(EntityEvent $event)
    {
        $resource = $event->getEntity();
        if ($resource instanceof LayoutBox) {
            $request  = $this->getRequestHelper()->getCurrentRequest();
            $settings = $this->getBoxSettingsFromRequest($request);
            $settings = $this->mergeUnmodifiedSettings($resource->getSettings(), $settings);
            $resource->setSettings($settings);
        }
    }
public function onLayoutBoxPreUpdate ( EntityEvent $ event ) { $ resource = $ event -> getEntity ( ) ; if ( $ resource instanceof LayoutBox ) { $ request = $ this -> getRequestHelper ( ) -> getCurrentRequest ( ) ; $ settings = $ this -> getBoxSettingsFromRequest ( $ request ) ; $ settings = $ this -> mergeUnmodifiedSettings ( $ resource -> getSettings ( ) , $ settings ) ; $ resource -> setSettings ( $ settings ) ; } }
Sets resource settings fetched from fieldset corresponding to selected box type

@param EntityEvent $event
Sets resource settings fetched from fieldset corresponding to selected box type