public function preSetData(FormEvent $event)
    {
        /** @var SessionConfigurationInterface $configuration */
        $configuration = $event->getData();

        if (empty($configuration) || empty($configuration) && $event->getForm()->has('answers')) {
            return;
        }

        $this->addAnswersFields($event->getForm());
        $this->addFlag($event);
    }
public function preSetData(FormEvent $event)
    {
        /** @var SessionConfigurationInterface $configuration */
        $configuration = $event->getData();

        if (empty($configuration) || empty($configuration) && $event->getForm()->has('answers')) {
            return;
        }

        $this->addAnswersFields($event->getForm());
        $this->addFlag($event);
    }
public function preSetData ( FormEvent $ event ) { /** @var SessionConfigurationInterface $configuration */ $ configuration = $ event -> getData ( ) ; if ( empty ( $ configuration ) || empty ( $ configuration ) && $ event -> getForm ( ) -> has ( 'answers' ) ) { return ; } $ this -> addAnswersFields ( $ event -> getForm ( ) ) ; $ this -> addFlag ( $ event ) ; }
Pre set data

@param FormEvent $event
Pre set data