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

Breadcrumb

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

function ArrayAccessGetterSetter::keys

Overrides PropagationGetterInterface::keys

File

vendor/open-telemetry/context/Propagation/ArrayAccessGetterSetter.php, line 39

Class

ArrayAccessGetterSetter
Default implementation of {This type is used if no custom getter/setter is provided to {

Namespace

OpenTelemetry\Context\Propagation

Code

public function keys($carrier) : array {
    if ($this->isSupportedCarrier($carrier)) {
        $keys = [];
        foreach ($carrier as $key => $_) {
            $keys[] = (string) $key;
        }
        return $keys;
    }
    throw new InvalidArgumentException(sprintf('Unsupported carrier type: %s.', get_debug_type($carrier)));
}

API Navigation

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