private function createMappingField(\DOMNode $fieldNode)
    {
        $fieldParam = ['type' => $fieldNode->getAttribute('type')];

        if ($fieldNode->hasAttribute('nestedPath')) {
            $fieldParam['nestedPath'] = $fieldNode->getAttribute('nestedPath');
        }

        foreach ($fieldNode->childNodes as $childNode) {
            if ($childNode instanceof \DOMElement) {
                $tagName = $this->underscore($childNode->tagName);
                $fieldParam['fieldConfig'][$tagName] = $childNode->nodeValue;
            }
        }

        return $fieldParam;
    }
private function createMappingField(\DOMNode $fieldNode)
    {
        $fieldParam = ['type' => $fieldNode->getAttribute('type')];

        if ($fieldNode->hasAttribute('nestedPath')) {
            $fieldParam['nestedPath'] = $fieldNode->getAttribute('nestedPath');
        }

        foreach ($fieldNode->childNodes as $childNode) {
            if ($childNode instanceof \DOMElement) {
                $tagName = $this->underscore($childNode->tagName);
                $fieldParam['fieldConfig'][$tagName] = $childNode->nodeValue;
            }
        }

        return $fieldParam;
    }
private function createMappingField ( \ DOMNode $ fieldNode ) { $ fieldParam = [ 'type' => $ fieldNode -> getAttribute ( 'type' ) ] ; if ( $ fieldNode -> hasAttribute ( 'nestedPath' ) ) { $ fieldParam [ 'nestedPath' ] = $ fieldNode -> getAttribute ( 'nestedPath' ) ; } foreach ( $ fieldNode -> childNodes as $ childNode ) { if ( $ childNode instanceof \ DOMElement ) { $ tagName = $ this -> underscore ( $ childNode -> tagName ) ; $ fieldParam [ 'fieldConfig' ] [ $ tagName ] = $ childNode -> nodeValue ; } } return $ fieldParam ; }
Parse field configuration params.

@param \DOMNode $fieldNode Field node to be parsed.

@return array
Parse field configuration params .