/** * Renders a disabe form elements toggle checkboxes element. */ public function render(ElementInterface $element) { /* @var $element DisableElementsCapableFormSettings * @var $renderer \Zend\View\Renderer\PhpRenderer * @var $headscript \Zend\View\Helper\HeadScript * @var $basepath \Zend\View\Helper\BasePath */ $renderer = $this->getView(); $headscript = $renderer->plugin('headscript'); $basepath = $renderer->plugin('basepath'); $headscript->appendFile($basepath('Settings/js/forms.decfs.js')); return '<ul class="disable-elements-list" id="' . $element->getAttribute('id') . '-list"' . '>' . $this->renderCheckboxes($element->getCheckboxes()) . '</ul>'; }