Skip to content

Commit 46ce40b

Browse files
committed
Add doc blocks.
1 parent aa30d4b commit 46ce40b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/View/Input/Radio.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,17 @@ protected function _isDisabled($radio, $disabled) {
137137
return (!is_array($disabled) || in_array((string)$radio['value'], $disabled, !$isNumeric));
138138
}
139139

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+
*/
140151
protected function _renderLabel($radio, $label, $escape) {
141152
if (!$label) {
142153
return false;

0 commit comments

Comments
 (0)