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 '';
  }