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

Breadcrumb

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

function DataPointFlags::value

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/V1/DataPointFlags.php, line 51

Class

DataPointFlags
DataPointFlags is defined as a protobuf 'uint32' type and is to be used as a bit-field representing 32 distinct boolean flags. Each flag defined in this enum is a bit-mask. To test the presence of a single flag in the flags of a data…

Namespace

Opentelemetry\Proto\Metrics\V1

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);
}

API Navigation

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