Habari\FormContainer::insert PHP Method

insert() public method

public insert ( FormControl $before, FormControl $control ) : FormControl
$before FormControl The control to insert the control in front of
$control FormControl The control to insert
return FormControl $control via Fluent interface
    public function insert($before, $control)
    {
        if (!$control instanceof FormControl) {
            $args = func_get_args();
            $before = array_shift($args);
            $control = FormControl::from_args($args);
        }
        $this->append($control);
        $this->move_before($control, $before);
        return $control;
    }