public function getField($name)
    {
        if ($this->has($name)) {
            return $this->fields[$name];
        }

        throw new \InvalidArgumentException(
            'Field with name ['. $name .'] does not exist in class '.get_class($this)
        );
    }
public function getField($name)
    {
        if ($this->has($name)) {
            return $this->fields[$name];
        }

        throw new \InvalidArgumentException(
            'Field with name ['. $name .'] does not exist in class '.get_class($this)
        );
    }
public function getField ( $ name ) { if ( $ this -> has ( $ name ) ) { return $ this -> fields [ $ name ] ; } throw new \ InvalidArgumentException ( 'Field with name [' . $ name . '] does not exist in class ' . get_class ( $ this ) ) ; }
Get single field instance from form object

@param $name
@return FormField
Get single field instance from form object