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

Breadcrumb

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

function DeprecatedStatusCode::value

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Status/DeprecatedStatusCode.php, line 113

Class

DeprecatedStatusCode
Protobuf type <code>opentelemetry.proto.trace.v1.Status.DeprecatedStatusCode</code>

Namespace

Opentelemetry\Proto\Trace\V1\Status

Code

public static function value($name) {
    $const = __CLASS__ . '::' . strtoupper($name);
    if (!defined($const)) {
        throw new UnexpectedValueException(sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
    }
    return constant($const);
}
RSS feed
Powered by Drupal