PortableInfobox/services/Parser/Nodes/NodeData.php

13 lines
321 B
PHP

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
class NodeData extends Node {
public function getData() {
$data = [];
$data['label'] = $this->parseWithExternalParser( (string) $this->xmlNode->{self::LABEL_TAG_NAME}, true );
$data['value'] = $this->getValueWithDefault( $this->xmlNode );
return $data;
}
}