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

Breadcrumb

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

function AttributesConverter::isSimpleArray

Test whether an array is simple (non-KeyValue)

1 call to AttributesConverter::isSimpleArray()
AttributesConverter::convertAnyValue in vendor/open-telemetry/exporter-otlp/AttributesConverter.php

File

vendor/open-telemetry/exporter-otlp/AttributesConverter.php, line 69

Class

AttributesConverter

Namespace

OpenTelemetry\Contrib\Otlp

Code

public static function isSimpleArray(array $value) : bool {
    return $value === [] || array_key_first($value) === 0;
}

API Navigation

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