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

Breadcrumb

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

function Context::getRoot

@internal

4 calls to Context::getRoot()
Context::resolve in vendor/open-telemetry/context/Context.php
@internal OpenTelemetry
ContextStorage::current in vendor/open-telemetry/context/ContextStorage.php
Returns the current context.
FiberBoundContextStorage::current in vendor/open-telemetry/context/FiberBoundContextStorage.php
Returns the current context.
MultiObserver::observe in vendor/open-telemetry/sdk/Metrics/MetricRegistry/MultiObserver.php
Records the given absolute datapoint.

File

vendor/open-telemetry/context/Context.php, line 63

Class

Context

Namespace

OpenTelemetry\Context

Code

public static function getRoot() : ContextInterface {
    static $empty;
    return $empty ??= new self();
}

API Navigation

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