You are here

function _bakery_init_field_url in Bakery Single Sign-On System 8.2

Same name and namespace in other branches
  1. 6.2 bakery.module \_bakery_init_field_url()
  2. 7.4 bakery.module \_bakery_init_field_url()
  3. 7.2 bakery.module \_bakery_init_field_url()
  4. 7.3 bakery.module \_bakery_init_field_url()

Build full init url to master.

1 call to _bakery_init_field_url()
BakeryUserHooks::view in src/BakeryUserHooks.php

File

./bakery.module, line 324
For implementing different hooks for bakery SSO functionality.

Code

function _bakery_init_field_url($init) {
  $scheme = parse_url(\Drupal::config('bakery.settings')
    ->get('bakery_master'), PHP_URL_SCHEME);
  return $scheme . '://' . $init;
}