PortableInfobox/services/Parser/Nodes/NodeFooter.php

17 lines
388 B
PHP
Raw Normal View History

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
class NodeFooter extends Node {
public function getData() {
2015-05-19 18:20:44 +00:00
return [ 'value' => $this->getExternalParser()->parseRecursive(
\Wikia\PortableInfobox\Helpers\SimpleXmlUtil::getInstance()->getInnerXML( $this->xmlNode )
) ];
}
public function isEmpty( $data ) {
2015-05-19 18:20:44 +00:00
$links = trim( $data['value'] );
return empty( $links );
}
}