Sulu\Component\Content\Metadata\Loader\XmlLegacyLoader::loadBlock PHP Method

loadBlock() private method

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