PortableInfobox/services/Parser/Nodes/NodeFooter.php
2015-05-08 16:56:44 +02:00

15 lines
331 B
PHP

<?php
namespace Wikia\PortableInfobox\Parser\Nodes;
class NodeFooter extends Node {
public function getData() {
return [ 'value' => $this->getExternalParser()->parseRecursive( $this->getInnerXML( $this->xmlNode ) ) ];
}
public function isEmpty( $data ) {
$links = trim( $data[ 'value' ] );
return empty( $links );
}
}