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

render() публичный Метод

Data supports the following keys: - name - Set the input name. - inline - The alignement to use. - options - An array of options. See below for more information. - disabled - Either true or an array of inputs to disable. When true, the select element will be disabled. - val - A string of the option to mark as selected. - label - Either false to disable label generation, or an array of attributes for all labels. - required - Set to true to add the required attribute on all generated radios. - idPrefix Prefix for generated ID attributes.
public render ( array $data, Cake\View\Form\ContextInterface $context ) : string
$data array The data to build radio buttons with.
$context Cake\View\Form\ContextInterface The current form context.
Результат string
    public function render(array $data, ContextInterface $context)
    {
        $data += ['inline' => false];
        $this->_inline = $data['inline'];
        return parent::render($data, $context);
    }