You are here

function _saml_sp__debug in SAML Service Provider 3.x

Same name and namespace in other branches
  1. 8.3 saml_sp.module \_saml_sp__debug()
  2. 4.x saml_sp.module \_saml_sp__debug()

Provides debugging output.

Parameters

string $label: The label for the associated value.

string $value: The variable or object to be printed.

4 calls to _saml_sp__debug()
SamlSPAuth::buildRequestSignature in src/SAML/SamlSPAuth.php
Builds the request signature.
SamlSPAuth::login in src/SAML/SamlSPAuth.php
Initiates the SSO process.
SamlSPAuthnRequest::__construct in src/SAML/SamlSPAuthnRequest.php
saml_sp_drupal_login__saml_authenticate in modules/saml_sp_drupal_login/saml_sp_drupal_login.module
SAML authentication callback.

File

./saml_sp.module, line 428
SAML Service Provider.

Code

function _saml_sp__debug($label, $value) {
  if (\Drupal::moduleHandler()
    ->moduleExists('devel')) {

    // @codingStandardsIgnoreLine
    dpm($label, $value);
  }
  else {
    \Drupal::messenger()
      ->addMessage(t("%label<br>\n<pre>\n@value\n</pre>\n", [
      '%label' => $label,
      '@value' => print_r($value, TRUE),
    ]));
  }
}