view->protectId('icingaCheckbox_' . $name); } $html = parent::formCheckbox($name, $value, $attribs, $checkedOptions); $class = 'toggle-switch'; if (isset($attribs['disabled'])) { $class .= ' disabled'; } return $html . ''; } }