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

Breadcrumb

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

function Enum::setSourceContext

The source context.

Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 4;</code>

Parameters

\Google\Protobuf\SourceContext $var:

Return value

$this

File

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

Class

Enum
Enum type definition.

Namespace

Google\Protobuf

Code

public function setSourceContext($var) {
    GPBUtil::checkMessage($var, \Google\Protobuf\SourceContext::class);
    $this->source_context = $var;
    return $this;
}

API Navigation

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