/** * Method to get the list of Weight Unit for the field options. * * @return array The field option objects. * * @since 11.1 */ protected function getOptions() { $options = array(); $values = ShopFunctions::getWeightUnit(); foreach ($values as $k => $v) { $options[] = JHtml::_('select.option', $k, $v); } // Merge any additional options in the XML definition. $options = array_merge(parent::getOptions(), $options); return $options; }