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

Breadcrumb

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

function MapFieldIter::__construct

Create iterator instance for MapField.

@ignore

Parameters

array $container:

GPBType $key_type Map key type.:

File

vendor/google/protobuf/src/Google/Protobuf/Internal/MapFieldIter.php, line 41

Class

MapFieldIter
MapFieldIter is used to iterate MapField. It is also need for the foreach syntax.

Namespace

Google\Protobuf\Internal

Code

public function __construct($container, $key_type) {
    $this->container = $container;
    $this->key_type = $key_type;
}

API Navigation

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