public function ArrayCollection::containsKey

Checks whether the collection contains a specific key/index.

Parameters

mixed $key The key to check for.:

Return value

boolean TRUE if the given key/index exists, FALSE otherwise.

Overrides Collection::containsKey

1 call to ArrayCollection::containsKey()
ArrayCollection::offsetExists in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
ArrayAccess implementation of offsetExists()

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php, line 215

Class

ArrayCollection
An ArrayCollection is a Collection implementation that wraps a regular PHP array.

Namespace

Doctrine\Common\Collections

Code

public function containsKey($key) {
  return isset($this->_elements[$key]);
}