public function field($field_name, array $attributes = array())
    {
        if (isset($this->fields[$field_name])) {
            $field = $this->fields[$field_name];
            if (count($attributes)) {
                $field->attributes($attributes);
                $field->build();
            }

            return $field;
        }
    }
public function field($field_name, array $attributes = array())
    {
        if (isset($this->fields[$field_name])) {
            $field = $this->fields[$field_name];
            if (count($attributes)) {
                $field->attributes($attributes);
                $field->build();
            }

            return $field;
        }
    }
public function field ( $ field_name , array $ attributes = array ( ) ) { if ( isset ( $ this -> fields [ $ field_name ] ) ) { $ field = $ this -> fields [ $ field_name ] ; if ( count ( $ attributes ) ) { $ field -> attributes ( $ attributes ) ; $ field -> build ( ) ; } return $ field ; } }
get field instance from fields array
@param string $field_name
@param array $attributes
@return \Zofe\Rapyd\DataForm\Field $field
get field instance from fields array