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

Breadcrumb

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

function Method::setOptions

Any metadata attached to the method.

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

Parameters

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

Return value

$this

File

vendor/google/protobuf/src/Google/Protobuf/Method.php, line 236

Class

Method
Method represents a method of an API interface.

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