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

Breadcrumb

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

function Configuration::getEnum

9 calls to Configuration::getEnum()
LogsExporterFactory::create in vendor/open-telemetry/exporter-otlp/LogsExporterFactory.php
@psalm-suppress ArgumentTypeCoercion
LogsExporterFactory::getCompression in vendor/open-telemetry/exporter-otlp/LogsExporterFactory.php
MeterProviderFactory::create in vendor/open-telemetry/sdk/Metrics/MeterProviderFactory.php
@todo https://github.com/open-telemetry/opentelemetry-specification/blob/main…
MetricExporterFactory::create in vendor/open-telemetry/exporter-otlp/MetricExporterFactory.php
@psalm-suppress ArgumentTypeCoercion
MetricExporterFactory::getCompression in vendor/open-telemetry/exporter-otlp/MetricExporterFactory.php

... See full list

File

vendor/open-telemetry/sdk/Common/Configuration/Configuration.php, line 101

Class

Configuration
Configuration can come from one or more of the following sources (from highest to lowest priority):

Namespace

OpenTelemetry\SDK\Common\Configuration

Code

public static function getEnum(string $key, ?string $default = null) : string {
    return (string) self::validateVariableValue(CompositeResolver::instance()->resolve(self::validateVariableType($key, VariableTypes::ENUM), $default));
}
RSS feed
Powered by Drupal