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

Breadcrumb

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

function ContextInterface::get

Returns the value assigned to the given key.

@template T

Parameters

ContextKeyInterface<T> $key key to get:

Return value

T|null value assigned to `$key`, or null if no such value exists

See also

https://github.com/open-telemetry/opentelemetry-specification/blob/main…

1 method overrides ContextInterface::get()
Context::get in vendor/open-telemetry/context/Context.php
Returns the value assigned to the given key.

File

vendor/open-telemetry/context/ContextInterface.php, line 85

Class

ContextInterface
Immutable execution scoped propagation mechanism.

Namespace

OpenTelemetry\Context

Code

public function get(ContextKeyInterface $key);

API Navigation

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