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

Breadcrumb

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

function RepeatedFieldIter::current

Return the element at the current position.

@todo need to add return type mixed (require update php version to 8.0)

Return value

object The element at the current position.

File

vendor/google/protobuf/src/Google/Protobuf/Internal/RepeatedFieldIter.php, line 63

Class

RepeatedFieldIter
RepeatedFieldIter is used to iterate RepeatedField. It is also need for the foreach syntax.

Namespace

Google\Protobuf\Internal

Code

public function current() {
    return $this->container[$this->position];
}

API Navigation

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