public function render(FormInterface $form, $colMap = null, $buttonsSpan = null) { $headscript = $this->getView()->plugin('headscript'); $basepath = $this->getView()->plugin('basepath'); $headscript->appendFile($basepath('Core/js/core.searchform.js')); if (is_int($colMap)) { $buttonsSpan = $colMap; $colMap = null; } if ($form instanceof ViewPartialProviderInterface) { return $this->getView()->partial($form->getViewPartial(), ['element' => $form, 'colMap' => $colMap, 'buttonsSpan' => $buttonsSpan]); } $elements = $form->getElements(); $buttons = $form->getButtons(); $content = $this->renderElements($elements, $buttons, $colMap, $buttonsSpan); return $this->openTag($form) . '<div class="row" style="padding: 0 15px;">' . $content . '</div>' . $this->closeTag(); }