You are here

function saml_sp_idp_load in SAML Service Provider 8.2

Same name and namespace in other branches
  1. 8.3 saml_sp.module \saml_sp_idp_load()
  2. 7.8 saml_sp.module \saml_sp_idp_load()
  3. 7 saml_sp.module \saml_sp_idp_load()
  4. 7.2 saml_sp.module \saml_sp_idp_load()
  5. 7.3 saml_sp.module \saml_sp_idp_load()
  6. 4.x saml_sp.module \saml_sp_idp_load()
  7. 3.x saml_sp.module \saml_sp_idp_load()

Load a single IDP.

Parameters

String $idp_machine_name:

Return value

Object

3 calls to saml_sp_idp_load()
SamlSPController::consume in src/Controller/SamlSPController.php
receive data back from the IdP
saml_sp_drupal_login_form_user_login_alter in modules/saml_sp_drupal_login/saml_sp_drupal_login.module
Implements hook_form_FORM_ID_alter().
saml_sp_drupal_login_form_user_login_block_alter in modules/saml_sp_drupal_login/saml_sp_drupal_login.module
Implements hook_form_FORM_ID_alter().
1 string reference to 'saml_sp_idp_load'
IdpForm::form in src/Form/IdpForm.php
Gets the actual form array to be built.

File

./saml_sp.module, line 72
SAML Service Provider

Code

function saml_sp_idp_load($idp_machine_name) {
  if (is_string($idp_machine_name)) {
    return entity_load('idp', $idp_machine_name);
  }
  if (is_array($idp_machine_name)) {
    return $idp_machine_name;
  }
}