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

Breadcrumb

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

function Enum::setEnumvalue

Enum value definitions.

Generated from protobuf field <code>repeated .google.protobuf.EnumValue enumvalue = 2;</code>

Parameters

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

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/Enum.php, line 116

Class

Enum
Enum type definition.

Namespace

Google\Protobuf

Code

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

API Navigation

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