function miniorange_oauth_clientController::testattrmappingconfig in OAuth2 Login 8
1 call to miniorange_oauth_clientController::testattrmappingconfig()
File
- src/
Controller/ miniorange_oauth_clientController.php, line 312 - Contains \Drupal\miniorange_oauth_client\Controller\DefaultController.
Class
Namespace
Drupal\oauth2_login\ControllerCode
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>";
}
}
}