original_string: public function getFieldList($options = [])
      {
          $_options = [
              'normalize' => true,
          ];
  
          $options = Hash::merge($_options, $options);
  
          $list = [];
  
          foreach ($this->config() as $key => $value) {
              if (!in_array($key, $this->_presetConfigKeys) || is_integer($key)) {
                  if (is_integer($key)) {
                      $field = $value;
                  } else {
                      $field = $key;
                  }
  
                  if ($options['normalize']) {
                      $fieldConfig = $this->_normalizeField($field);
                  } else {
                      $fieldConfig = (($this->config($field) == null) ? [] : $this->config($field));
                  }
  
                  $list[$field] = $fieldConfig;
              }
          }
          return $list;
      }
code: public function getFieldList($options = [])
      {
          $_options = [
              'normalize' => true,
          ];
  
          $options = Hash::merge($_options, $options);
  
          $list = [];
  
          foreach ($this->config() as $key => $value) {
              if (!in_array($key, $this->_presetConfigKeys) || is_integer($key)) {
                  if (is_integer($key)) {
                      $field = $value;
                  } else {
                      $field = $key;
                  }
  
                  if ($options['normalize']) {
                      $fieldConfig = $this->_normalizeField($field);
                  } else {
                      $fieldConfig = (($this->config($field) == null) ? [] : $this->config($field));
                  }
  
                  $list[$field] = $fieldConfig;
              }
          }
          return $list;
      }
code_tokens: public function getFieldList ( $ options = [ ] ) { $ _options = [ 'normalize' => true , ] ; $ options = Hash :: merge ( $ _options , $ options ) ; $ list = [ ] ; foreach ( $ this -> config ( ) as $ key => $ value ) { if ( ! in_array ( $ key , $ this -> _presetConfigKeys ) || is_integer ( $ key ) ) { if ( is_integer ( $ key ) ) { $ field = $ value ; } else { $ field = $ key ; } if ( $ options [ 'normalize' ] ) { $ fieldConfig = $ this -> _normalizeField ( $ field ) ; } else { $ fieldConfig = ( ( $ this -> config ( $ field ) == null ) ? [ ] : $ this -> config ( $ field ) ) ; } $ list [ $ field ] = $ fieldConfig ; } } return $ list ; }
docstring: Returns a list of all registered fields to upload
  
  ### Options
  - normalize      boolean if each field should be normalized. Default set to true
  
  @param array $options Options.
  @return array
docstring_tokens: Returns a list of all registered fields to upload