Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HttpEndpointResolver.php

function HttpEndpointResolver::addUserInfo

1 call to HttpEndpointResolver::addUserInfo()
HttpEndpointResolver::resolve in vendor/open-telemetry/exporter-otlp/HttpEndpointResolver.php

File

vendor/open-telemetry/exporter-otlp/HttpEndpointResolver.php, line 111

Class

HttpEndpointResolver
Resolves non-signal-specific OTLP HTTP endpoints to signal-specific ones according to the specification.

Namespace

OpenTelemetry\Contrib\Otlp

Code

private static function addUserInfo(UriInterface $uri, array $components) : UriInterface {
    if (isset($components[self::USER_ATTRIBUTE])) {
        $uri = $uri->withUserInfo($components[self::USER_ATTRIBUTE], $components[self::PASS_ATTRIBUTE] ?? null);
    }
    return $uri;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal