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

Breadcrumb

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

function SdkAutoloader::getHookManager

1 call to SdkAutoloader::getHookManager()
SdkAutoloader::registerInstrumentations in vendor/open-telemetry/sdk/SdkAutoloader.php
Register all {@link Instrumentation} configured through SPI @psalm-suppress ArgumentTypeCoercion

File

vendor/open-telemetry/sdk/SdkAutoloader.php, line 223

Class

SdkAutoloader
@psalm-suppress RedundantCast

Namespace

OpenTelemetry\SDK

Code

private static function getHookManager() : HookManagerInterface {
    
    /** @var HookManagerInterface $hookManager */
    foreach (ServiceLoader::load(HookManagerInterface::class) as $hookManager) {
        return $hookManager;
    }
    return new NoopHookManager();
}

API Navigation

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