private function getUrlFromOpenyProgramsSearchSettings($name, $token_replace = []) {
    $config = $this->configFactory->get('openy_programs_search.settings');
    if (empty($value = $config->get($name))) {
      $value = '';
    }
    $base_url = $config->get('base_url');
    $client_id = $config->get('client_id');
    $token_replace += ['{{ client_id }}' => $client_id];

    switch ($name) {
      case 'base_url':
        return $base_url;
        break;
      case 'registration_path':
      case 'get_schools_by_program_path':
      case 'get_categories_path':
      case 'get_map_categories_by_branch_path':
        return $base_url . strtr($value, $token_replace);;
        break;
    }

    return '';
  }
private function getUrlFromOpenyProgramsSearchSettings($name, $token_replace = []) {
    $config = $this->configFactory->get('openy_programs_search.settings');
    if (empty($value = $config->get($name))) {
      $value = '';
    }
    $base_url = $config->get('base_url');
    $client_id = $config->get('client_id');
    $token_replace += ['{{ client_id }}' => $client_id];

    switch ($name) {
      case 'base_url':
        return $base_url;
        break;
      case 'registration_path':
      case 'get_schools_by_program_path':
      case 'get_categories_path':
      case 'get_map_categories_by_branch_path':
        return $base_url . strtr($value, $token_replace);;
        break;
    }

    return '';
  }
private function getUrlFromOpenyProgramsSearchSettings ( $ name , $ token_replace = [ ] ) { $ config = $ this -> configFactory -> get ( 'openy_programs_search.settings' ) ; if ( empty ( $ value = $ config -> get ( $ name ) ) ) { $ value = '' ; } $ base_url = $ config -> get ( 'base_url' ) ; $ client_id = $ config -> get ( 'client_id' ) ; $ token_replace += [ '{{ client_id }}' => $ client_id ] ; switch ( $ name ) { case 'base_url' : return $ base_url ; break ; case 'registration_path' : case 'get_schools_by_program_path' : case 'get_categories_path' : case 'get_map_categories_by_branch_path' : return $ base_url . strtr ( $ value , $ token_replace ) ; ; break ; } return '' ; }
Get URL from Config openy_programs_search.settings.

@param $name string
Configuration item name.
@param array $token_replace
Key value pair or from => to.

@return array|mixed|string
Get URL from Config openy_programs_search . settings .