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

Breadcrumb

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

function ListValue::setValues

Repeated field of dynamically typed values.

Generated from protobuf field <code>repeated .google.protobuf.Value values = 1;</code>

Parameters

array<\Google\Protobuf\Value>|\Google\Protobuf\Internal\RepeatedField $var:

Return value

$this

File

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

Class

ListValue
`ListValue` is a wrapper around a repeated field of values. The JSON representation for `ListValue` is JSON array.

Namespace

Google\Protobuf

Code

public function setValues($var) {
    $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class);
    $this->values = $arr;
    return $this;
}

API Navigation

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