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

Breadcrumb

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

function RepeatedField::offsetExists

Check the existence of the element at the given index.

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

Parameters

integer $offset The index of the element to be removed.:

Return value

bool True if the element at the given offset exists.

Throws

\ErrorException Invalid type for index.

File

vendor/google/protobuf/src/Google/Protobuf/Internal/RepeatedField.php, line 217

Class

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

Namespace

Google\Protobuf\Internal

Code

public function offsetExists($offset) : bool {
    return isset($this->container[$offset]);
}

API Navigation

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