public function getRegistryData(FormInterface $form = null, PropertyAccess $conf = null)
    {
        $data = [];

        if (null !== $form) {
            if (!$form->isSubmitted()) {
                throw new RuntimeException('Form must have been submitted');
            }
            $newData = $form->getData();
            $data = $this->filterNullValues($newData);
        }

        $currentConf = $conf ? ($conf->get('registry') ?: []) : [];

        return array_replace_recursive($this->getDefaultData($currentConf), $data);
    }
public function getRegistryData(FormInterface $form = null, PropertyAccess $conf = null)
    {
        $data = [];

        if (null !== $form) {
            if (!$form->isSubmitted()) {
                throw new RuntimeException('Form must have been submitted');
            }
            $newData = $form->getData();
            $data = $this->filterNullValues($newData);
        }

        $currentConf = $conf ? ($conf->get('registry') ?: []) : [];

        return array_replace_recursive($this->getDefaultData($currentConf), $data);
    }
public function getRegistryData ( FormInterface $ form = null , PropertyAccess $ conf = null ) { $ data = [ ] ; if ( null !== $ form ) { if ( ! $ form -> isSubmitted ( ) ) { throw new RuntimeException ( 'Form must have been submitted' ) ; } $ newData = $ form -> getData ( ) ; $ data = $ this -> filterNullValues ( $ newData ) ; } $ currentConf = $ conf ? ( $ conf -> get ( 'registry' ) ? : [ ] ) : [ ] ; return array_replace_recursive ( $ this -> getDefaultData ( $ currentConf ) , $ data ) ; }
Gets the registry data given a submitted form.
Default configuration is returned if no form provided.

@param FormInterface $form

@param PropertyAccess $conf
@return array
Gets the registry data given a submitted form . Default configuration is returned if no form provided .