You are here

public static function Utilities::getBaseUrl in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

5 calls to Utilities::getBaseUrl()
MiniorangeIDPSetup::buildForm in src/Form/MiniorangeIDPSetup.php
Form constructor.
miniorange_samlController::saml_login in src/Controller/miniorange_samlController.php
miniorange_samlController::saml_response in src/Controller/miniorange_samlController.php
Utilities::getAcsUrl in src/Utilities.php
Utilities::getIssuer in src/Utilities.php

File

src/Utilities.php, line 899

Class

Utilities
This file is part of miniOrange SAML plugin.

Namespace

Drupal\miniorange_saml

Code

public static function getBaseUrl() {
  global $base_url;
  $saved_base_url = \Drupal::config('miniorange_saml.settings')
    ->get('miniorange_saml_base_url');
  return isset($saved_base_url) && !empty($saved_base_url) ? $saved_base_url : $base_url;
}