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

Breadcrumb

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

function SourceContext::__construct

Constructor.

Parameters

array $data {: Optional. Data for populating the Message object.

@type string $file_name The path-qualified name of the .proto file that contained the associated protobuf element. For example: `"google/protobuf/source_context.proto"`. }

Overrides Message::__construct

File

vendor/google/protobuf/src/Google/Protobuf/SourceContext.php, line 38

Class

SourceContext
`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.

Namespace

Google\Protobuf

Code

public function __construct($data = NULL) {
    \GPBMetadata\Google\Protobuf\SourceContext::initOnce();
    parent::__construct($data);
}

API Navigation

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