WellCommerce\Bundle\LayoutBundle\EventListener\LayoutBoxSubscriber::onLayoutBoxPreUpdate PHP Метод

onLayoutBoxPreUpdate() публичный Метод

Sets resource settings fetched from fieldset corresponding to selected box type
public onLayoutBoxPreUpdate ( WellCommerce\Bundle\DoctrineBundle\Event\EntityEvent $event )
$event WellCommerce\Bundle\DoctrineBundle\Event\EntityEvent
    public function onLayoutBoxPreUpdate(EntityEvent $event)
    {
        $resource = $event->getEntity();
        if ($resource instanceof LayoutBoxInterface) {
            $request = $this->getRequestHelper()->getCurrentRequest();
            $settings = $this->getBoxSettingsFromRequest($request);
            $resource->setSettings($settings);
        }
    }