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

Breadcrumb

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

function StringValue::setValue

The string value.

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

Parameters

string $var:

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/StringValue.php, line 59

Class

StringValue
Wrapper message for `string`. The JSON representation for `StringValue` is JSON string.

Namespace

Google\Protobuf

Code

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

API Navigation

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