You are here

public static function Utilities::getOAuthBaseURL in Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO 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 227

Class

Utilities

Namespace

Drupal\miniorange_oauth_client

Code

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