public static function get_identity_providers($authsequence) {
        global $SESSION;

        $identityproviders = [];
        foreach ($authsequence as $authname) {
            $authplugin = get_auth_plugin($authname);
            $wantsurl = (isset($SESSION->wantsurl)) ? $SESSION->wantsurl : '';
            $identityproviders = array_merge($identityproviders, $authplugin->loginpage_idp_list($wantsurl));
        }
        return $identityproviders;
    }
public static function get_identity_providers($authsequence) {
        global $SESSION;

        $identityproviders = [];
        foreach ($authsequence as $authname) {
            $authplugin = get_auth_plugin($authname);
            $wantsurl = (isset($SESSION->wantsurl)) ? $SESSION->wantsurl : '';
            $identityproviders = array_merge($identityproviders, $authplugin->loginpage_idp_list($wantsurl));
        }
        return $identityproviders;
    }
public static function get_identity_providers ( $ authsequence ) { global $ SESSION ; $ identityproviders = [ ] ; foreach ( $ authsequence as $ authname ) { $ authplugin = get_auth_plugin ( $ authname ) ; $ wantsurl = ( isset ( $ SESSION -> wantsurl ) ) ? $ SESSION -> wantsurl : '' ; $ identityproviders = array_merge ( $ identityproviders , $ authplugin -> loginpage_idp_list ( $ wantsurl ) ) ; } return $ identityproviders ; }
Return the list of enabled identity providers.

Each identity provider data contains the keys url, name and iconurl (or
icon). See the documentation of {@link auth_plugin_base::loginpage_idp_list()}
for detailed description of the returned structure.

@param array $authsequence site's auth sequence (list of auth plugins ordered)
@return array List of arrays describing the identity providers
Return the list of enabled identity providers .