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

Breadcrumb

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

function EnumValue::setOptions

Protocol buffer options.

Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code>

Parameters

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

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/EnumValue.php, line 126

Class

EnumValue
Enum value definition.

Namespace

Google\Protobuf

Code

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

API Navigation

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