public static function get_hub_info() {
        $info = self::call('hub_get_info', [], true);
        $info['imgurl'] = new moodle_url(HUB_MOODLEORGHUBURL . '/local/hub/webservice/download.php',
            ['filetype' => self::HUB_HUBSCREENSHOT_FILE_TYPE]);
        return $info;
    }
public static function get_hub_info() {
        $info = self::call('hub_get_info', [], true);
        $info['imgurl'] = new moodle_url(HUB_MOODLEORGHUBURL . '/local/hub/webservice/download.php',
            ['filetype' => self::HUB_HUBSCREENSHOT_FILE_TYPE]);
        return $info;
    }
public static function get_hub_info ( ) { $ info = self :: call ( 'hub_get_info' , [ ] , true ) ; $ info [ 'imgurl' ] = new moodle_url ( HUB_MOODLEORGHUBURL . '/local/hub/webservice/download.php' , [ 'filetype' => self :: HUB_HUBSCREENSHOT_FILE_TYPE ] ) ; return $ info ; }
Returns information about moodle.net

Example of the return array:
{
"courses": 384,
"description": "Moodle.net connects you with free content and courses shared by Moodle ...",
"downloadablecourses": 190,
"enrollablecourses": 194,
"hublogo": 1,
"language": "en",
"name": "Moodle.net",
"sites": 274175,
"url": "https://moodle.net",
"imgurl": "https://moodle.net/local/hub/webservice/download.php?filetype=hubscreenshot"
}

@return array
@throws moodle_exception
Returns information about moodle . net