PortableInfobox/services/Parser/Nodes/NodeFooter.php

15 lines
331 B
PHP
Raw Normal View History

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