PortableInfobox/services/Parser/Nodes/NodeData.php

13 lines
315 B
PHP
Raw Normal View History

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
class NodeData extends Node {
public function getData() {
return [
2015-05-08 14:56:44 +00:00
'label' => $this->getExternalParser()->parseRecursive( $this->getInnerXML( $this->xmlNode->{self::LABEL_TAG_NAME} ) ),
'value' => $this->getValueWithDefault( $this->xmlNode )
];
}
}