original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Sets resource settings fetched from fieldset corresponding to selected box type
  
  @param EntityEvent $event
docstring_tokens: Sets resource settings fetched from fieldset corresponding to selected box type