PortableInfobox/services/Parser/Nodes/NodeData.php
Sebastian Marzjan 69b9abc0af DAT-2785 and DAT-2784 - Handle InnerXML properly
Remove obsolete test
2015-05-13 13:52:31 +02:00

17 lines
385 B
PHP

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
class NodeData extends Node {
public function getData() {
return [
'label' => $this->getExternalParser()->parseRecursive(
\Wikia\PortableInfobox\Helpers\SimpleXmlUtil::getInstance()->getInnerXML(
$this->xmlNode->{self::LABEL_TAG_NAME}
)
),
'value' => $this->getValueWithDefault( $this->xmlNode )
];
}
}