element['class'] ? ' class="checkboxes ' . (string) $this->element['class'] . '"' : ' class="checkboxes"'; $checkedOptions = explode(',', (string) $this->element['checked']); // Start the checkbox field output. $html[] = '
'; // Get the field options. $options = $this->getOptions(); // Build the checkbox field output. $html[] = ''; // End the checkbox field output. $html[] = '
'; return implode($html); } /** * Method to get the field options. * * @return array The field option objects. * * @since 11.1 */ protected function getOptions() { $options = array(); foreach ($this->element->children() as $option) { // Only add