AdamWathan\BootForms\BasicFormBuilder::buildCheckGroup PHP Méthode

buildCheckGroup() protected méthode

protected buildCheckGroup ( $label, $name, $control )
    protected function buildCheckGroup($label, $name, $control)
    {
        $label = $this->builder->label($label, $name)->after($control)->addClass('control-label');
        $checkGroup = new CheckGroup($label);
        if ($this->builder->hasError($name)) {
            $checkGroup->helpBlock($this->builder->getError($name));
            $checkGroup->addClass('has-error');
        }
        return $checkGroup;
    }