AdamWathan\BootForms\HorizontalFormBuilder::checkGroup PHP Method

checkGroup() protected method

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