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

Breadcrumb

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

function BoolValue::setValue

The bool value.

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

Parameters

bool $var:

Return value

$this

File

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

Class

BoolValue
Wrapper message for `bool`. The JSON representation for `BoolValue` is JSON `true` and `false`.

Namespace

Google\Protobuf

Code

public function setValue($var) {
    GPBUtil::checkBool($var);
    $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