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

Breadcrumb

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

function FiberBoundContextStorage::attach

Overrides ContextStorageInterface::attach

File

vendor/open-telemetry/context/FiberBoundContextStorage.php, line 62

Class

FiberBoundContextStorage
@internal

Namespace

OpenTelemetry\Context

Code

public function attach(ContextInterface $context) : ContextStorageScopeInterface {
    $head = $this->heads[Fiber::getCurrent() ?? $this] ??= new ContextStorageHead($this);
    return $head->node = new ContextStorageNode($context, $head, $head->node);
}

API Navigation

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