original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Return the list of enabled identity providers .