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

Breadcrumb

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

function ContextStorageInterface::attach

Attaches the context as active context.

Parameters

ContextInterface $context context to attach:

Return value

ContextStorageScopeInterface scope to detach the context and restore the previous context

3 methods override ContextStorageInterface::attach()
ContextStorage::attach in vendor/open-telemetry/context/ContextStorage.php
Attaches the context as active context.
FiberBoundContextStorage::attach in vendor/open-telemetry/context/FiberBoundContextStorage.php
Attaches the context as active context.
FiberBoundContextStorageExecutionAwareBC::attach in vendor/open-telemetry/context/FiberBoundContextStorageExecutionAwareBC.php
Attaches the context as active context.

File

vendor/open-telemetry/context/ContextStorageInterface.php, line 31

Class

ContextStorageInterface

Namespace

OpenTelemetry\Context

Code

public function attach(ContextInterface $context) : ContextStorageScopeInterface;

API Navigation

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