src/Framework/Form/AspiForm.php
public function insertFieldBefore($name, Element\AbstractElement $field)
    {
        foreach ($this->fieldsets as $fieldset) {
            if ($fieldset->hasField($name)) {
                $fieldset->insertFieldBefore($name, $field);
                break;
            }
        }
        return $this;
    }
public function insertFieldBefore($name, Element\AbstractElement $field)
    {
        foreach ($this->fieldsets as $fieldset) {
            if ($fieldset->hasField($name)) {
                $fieldset->insertFieldBefore($name, $field);
                break;
            }
        }
        return $this;
    }
public function insertFieldBefore ( $ name , Element \ AbstractElement $ field ) { foreach ( $ this -> fieldsets as $ fieldset ) { if ( $ fieldset -> hasField ( $ name ) ) { $ fieldset -> insertFieldBefore ( $ name , $ field ) ; break ; } } return $ this ; }
Method to insert a field before another one

@param  string                  $name
@param  Element\AbstractElement $field
@return Form
Method to insert a field before another one