File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,17 @@ protected function _isDisabled($radio, $disabled) {
137
137
return (!is_array ($ disabled ) || in_array ((string )$ radio ['value ' ], $ disabled , !$ isNumeric ));
138
138
}
139
139
140
+ /**
141
+ * Renders a label element for a given radio button.
142
+ *
143
+ * In the future this might be refactored into a separate widget as other
144
+ * input types (multi-checkboxes) will also need labels generated.
145
+ *
146
+ * @param array $radio The input properties.
147
+ * @param false|string|array $label The properties for a label.
148
+ * @param boolean $escape Whether or not to HTML escape the label.
149
+ * @return string Generated label.
150
+ */
140
151
protected function _renderLabel ($ radio , $ label , $ escape ) {
141
152
if (!$ label ) {
142
153
return false ;
You can’t perform that action at this time.
0 commit comments