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

Breadcrumb

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

function KeyValue::setKey

Generated from protobuf field <code>string key = 1;</code>

Parameters

string $var:

Return value

$this

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/KeyValue.php, line 57

Class

KeyValue
KeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc.

Namespace

Opentelemetry\Proto\Common\V1

Code

public function setKey($var) {
    GPBUtil::checkString($var, True);
    $this->key = $var;
    return $this;
}

API Navigation

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