You are here

function miniorange_oauth_clientController::testattrmappingconfig in OAuth2 Login 8

1 call to miniorange_oauth_clientController::testattrmappingconfig()
miniorange_oauth_clientController::miniorange_oauth_client_mo_login in src/Controller/miniorange_oauth_clientController.php

File

src/Controller/miniorange_oauth_clientController.php, line 312
Contains \Drupal\miniorange_oauth_client\Controller\DefaultController.

Class

miniorange_oauth_clientController

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>";
    }
  }
}