src/Sulu/Component/Content/Metadata/Parser/PropertiesXmlParser.php
private function loadBlock(\DOMXPath $xpath, \DOMNode $node, &$tags)
    {
        $result = $this->loadValues(
            $xpath,
            $node,
            [
                'name',
                'default-type',
                'minOccurs',
                'maxOccurs',
                'colspan',
                'cssClass',
                'disabledCondition',
                'visibleCondition',
            ]
        );

        $result['mandatory'] = $this->getValueFromXPath('@mandatory', $xpath, $node, false);
        $result['type'] = 'block';
        $result['tags'] = $this->loadTags($tags, $xpath, $node);
        $result['params'] = $this->loadParams('x:params/x:param', $xpath, $node);
        $result['meta'] = $this->loadMeta($xpath, $node);
        $result['types'] = $this->loadTypes($tags, $xpath, $node);

        return $result;
    }
private function loadBlock(\DOMXPath $xpath, \DOMNode $node, &$tags)
    {
        $result = $this->loadValues(
            $xpath,
            $node,
            [
                'name',
                'default-type',
                'minOccurs',
                'maxOccurs',
                'colspan',
                'cssClass',
                'disabledCondition',
                'visibleCondition',
            ]
        );

        $result['mandatory'] = $this->getValueFromXPath('@mandatory', $xpath, $node, false);
        $result['type'] = 'block';
        $result['tags'] = $this->loadTags($tags, $xpath, $node);
        $result['params'] = $this->loadParams('x:params/x:param', $xpath, $node);
        $result['meta'] = $this->loadMeta($xpath, $node);
        $result['types'] = $this->loadTypes($tags, $xpath, $node);

        return $result;
    }
private function loadBlock ( \ DOMXPath $ xpath , \ DOMNode $ node , & $ tags ) { $ result = $ this -> loadValues ( $ xpath , $ node , [ 'name' , 'default-type' , 'minOccurs' , 'maxOccurs' , 'colspan' , 'cssClass' , 'disabledCondition' , 'visibleCondition' , ] ) ; $ result [ 'mandatory' ] = $ this -> getValueFromXPath ( '@mandatory' , $ xpath , $ node , false ) ; $ result [ 'type' ] = 'block' ; $ result [ 'tags' ] = $ this -> loadTags ( $ tags , $ xpath , $ node ) ; $ result [ 'params' ] = $ this -> loadParams ( 'x:params/x:param' , $ xpath , $ node ) ; $ result [ 'meta' ] = $ this -> loadMeta ( $ xpath , $ node ) ; $ result [ 'types' ] = $ this -> loadTypes ( $ tags , $ xpath , $ node ) ; return $ result ; }
load single block.
load single block .