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

Breadcrumb

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

function GPBUtil::checkBool

40 calls to GPBUtil::checkBool()
AnyValue::setBoolValue in vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/AnyValue.php
Generated from protobuf field <code>bool bool_value = 2;</code>
BoolValue::setValue in vendor/google/protobuf/src/Google/Protobuf/BoolValue.php
The bool value.
EnumOptions::setAllowAlias in vendor/google/protobuf/src/Google/Protobuf/Internal/EnumOptions.php
Set this option to true to allow mapping different tag names to the same value.
EnumOptions::setDeprecated in vendor/google/protobuf/src/Google/Protobuf/Internal/EnumOptions.php
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
EnumOptions::setDeprecatedLegacyJsonFieldConflicts in vendor/google/protobuf/src/Google/Protobuf/Internal/EnumOptions.php
Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. TODO Remove this legacy…

... See full list

File

vendor/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php, line 164

Class

GPBUtil

Namespace

Google\Protobuf\Internal

Code

public static function checkBool(&$var) {
    if (is_array($var) || is_object($var)) {
        throw new \Exception("Expect boolean.");
    }
    $var = boolval($var);
}

API Navigation

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