You are here

function oauth2_loginController::testattrmappingconfig in OAuth2 Login 8

1 call to oauth2_loginController::testattrmappingconfig()
oauth2_loginController::oauth2_login_mo_login in src/Controller/oauth2_loginController.php

File

src/Controller/oauth2_loginController.php, line 229
Contains \Drupal\oauth2_login\Controller\DefaultController.

Class

oauth2_loginController

Namespace

Drupal\oauth2_login\Controller

Code

function testattrmappingconfig($nestedprefix, $resourceOwnerDetails) {
  foreach ($resourceOwnerDetails as $key => $resource) {
    if (is_array($resource) || is_object($resource)) {
      if (!empty($nestedprefix)) {
        $nestedprefix .= ".";
      }
      self::testattrmappingconfig($nestedprefix . $key, $resource);
    }
    else {
      echo "<tr style='text-align:center;'><td style='font-weight:bold;border:2px solid #949090;padding:2%;'>";
      if (!empty($nestedprefix)) {
        echo $nestedprefix . ".";
      }
      echo $key . "</td><td style='font-weight:bold;padding:2%;border:2px solid #949090; word-wrap:break-word;'>" . $resource . "</td></tr>";
    }
  }
}