public function renderEndTag($writer) { if ($this->getGroupingText() !== '') { $writer->renderEndTag(); } parent::renderEndTag($writer); }