BootstrapUI\View\Widget\RadioWidget::_renderLabel PHP Метод

_renderLabel() защищенный Метод

In the future this might be refactored into a separate widget as other input types (multi-checkboxes) will also need labels generated.
protected _renderLabel ( array $radio, false | string | array $label, string $input, Cake\View\Form\ContextInterface $context, boolean $escape ) : string
$radio array The input properties.
$label false | string | array The properties for a label.
$input string The input widget.
$context Cake\View\Form\ContextInterface The form context.
$escape boolean Whether or not to HTML escape the label.
Результат string Generated label.
    protected function _renderLabel($radio, $label, $input, $context, $escape)
    {
        if ($this->_inline) {
            $label = ['text' => $radio['text'], 'class' => 'radio-inline'];
        }
        return parent::_renderLabel($radio, $label, $input, $context, $escape);
    }