Handler/FormHandler.php
protected function getDataList(FormConfigInterface $config)
    {
        $converter = $this->converterRegistry->get($config->getConverter());
        $dataList = $converter->convert((string) $this->request->getContent());

        if ($config instanceof FormConfigListInterface) {
            try {
                $dataList = $config->findList($dataList);
            } catch (InvalidResourceException $e) {
                throw new InvalidResourceException($this->translator->trans('form_handler.results_field_required', [], 'FxpResource'));
            }
        } else {
            $dataList = [$dataList];
        }

        return $dataList;
    }
protected function getDataList(FormConfigInterface $config)
    {
        $converter = $this->converterRegistry->get($config->getConverter());
        $dataList = $converter->convert((string) $this->request->getContent());

        if ($config instanceof FormConfigListInterface) {
            try {
                $dataList = $config->findList($dataList);
            } catch (InvalidResourceException $e) {
                throw new InvalidResourceException($this->translator->trans('form_handler.results_field_required', [], 'FxpResource'));
            }
        } else {
            $dataList = [$dataList];
        }

        return $dataList;
    }
protected function getDataList ( FormConfigInterface $ config ) { $ converter = $ this -> converterRegistry -> get ( $ config -> getConverter ( ) ) ; $ dataList = $ converter -> convert ( ( string ) $ this -> request -> getContent ( ) ) ; if ( $ config instanceof FormConfigListInterface ) { try { $ dataList = $ config -> findList ( $ dataList ) ; } catch ( InvalidResourceException $ e ) { throw new InvalidResourceException ( $ this -> translator -> trans ( 'form_handler.results_field_required' , [ ] , 'FxpResource' ) ) ; } } else { $ dataList = [ $ dataList ] ; } return $ dataList ; }
Get the form data list.

@param FormConfigInterface $config The form config

@return array
Get the form data list .