You are here

public static function Utilities::getOAuthBaseURL in OAuth2 Login 8

2 calls to Utilities::getOAuthBaseURL()
MiniorangeConfigOAuthClient::buildForm in src/Form/MiniorangeConfigOAuthClient.php
Form constructor.
MiniorangeConfigOAuthClient::submitForm in src/Form/MiniorangeConfigOAuthClient.php
Form submission handler.

File

src/Utilities.php, line 250

Class

Utilities

Namespace

Drupal\oauth2_login

Code

public static function getOAuthBaseURL($base_url) {
  if (!empty(\Drupal::config('oauth2_login.settings')
    ->get('miniorange_oauth_client_base_url'))) {
    $baseUrlValue = \Drupal::config('oauth2_login.settings')
      ->get('miniorange_oauth_client_base_url');
  }
  else {
    $baseUrlValue = $base_url;
  }
  return $baseUrlValue;
}