You are here

function MiniorangeConfigOAuthClient::mo_get_configuration_array in OAuth2 Login 8

1 call to MiniorangeConfigOAuthClient::mo_get_configuration_array()
MiniorangeConfigOAuthClient::miniorange_import_export in src/Form/MiniorangeConfigOAuthClient.php

File

src/Form/MiniorangeConfigOAuthClient.php, line 510

Class

MiniorangeConfigOAuthClient

Namespace

Drupal\oauth2_login\Form

Code

function mo_get_configuration_array($class_name) {
  $class_object = Utilities::getVariableArray($class_name);
  $mo_array = array();
  foreach ($class_object as $key => $value) {
    $mo_option_exists = \Drupal::config('oauth2_login.settings')
      ->get($value);
    if ($mo_option_exists) {
      $mo_array[$key] = $mo_option_exists;
    }
  }
  return $mo_array;
}