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

Breadcrumb

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

function MapField::count

Return the number of stored elements.

This will also be called for: count($arr)

Return value

integer The number of stored elements.

File

vendor/google/protobuf/src/Google/Protobuf/Internal/MapField.php, line 233

Class

MapField
MapField is used by generated protocol message classes to manipulate map fields. It can be used like native PHP array.

Namespace

Google\Protobuf\Internal

Code

public function count() : int {
    return count($this->container);
}

API Navigation

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