original_string: public static function get_config($section = '') {
  
          $params = self::validate_parameters(self::get_config_parameters(), array('section' => $section));
  
          $settings = api::get_config($params['section']);
          $result['settings'] = array();
          foreach ($settings as $name => $value) {
              $result['settings'][] = array(
                  'name' => $name,
                  'value' => $value,
              );
          }
  
          $result['warnings'] = array();
          return $result;
      }
code: public static function get_config($section = '') {
  
          $params = self::validate_parameters(self::get_config_parameters(), array('section' => $section));
  
          $settings = api::get_config($params['section']);
          $result['settings'] = array();
          foreach ($settings as $name => $value) {
              $result['settings'][] = array(
                  'name' => $name,
                  'value' => $value,
              );
          }
  
          $result['warnings'] = array();
          return $result;
      }
code_tokens: public static function get_config ( $ section = '' ) { $ params = self :: validate_parameters ( self :: get_config_parameters ( ) , array ( 'section' => $ section ) ) ; $ settings = api :: get_config ( $ params [ 'section' ] ) ; $ result [ 'settings' ] = array ( ) ; foreach ( $ settings as $ name => $ value ) { $ result [ 'settings' ] [ ] = array ( 'name' => $ name , 'value' => $ value , ) ; } $ result [ 'warnings' ] = array ( ) ; return $ result ; }
docstring: Returns a list of site settings, filtering by section.
  
  @param string $section settings section name
  @return array with the settings and warnings
  @since  Moodle 3.2
docstring_tokens: Returns a list of site settings filtering by section .