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

Breadcrumb

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

function Context::get

Overrides ContextInterface::get

1 call to Context::get()
Context::with in vendor/open-telemetry/context/Context.php
Returns a context with the given key set to the given value.

File

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

Class

Context

Namespace

OpenTelemetry\Context

Code

public function get(ContextKeyInterface $key) {
    if ($key === self::$spanContextKey) {
        
        /** @psalm-suppress InvalidReturnStatement */
        return $this->span;
    }
    return $this->context[spl_object_id($key)] ?? null;
}

API Navigation

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