public function ArrayCollection::key

Gets the current key/index at the current internal iterator position.

Return value

mixed

Overrides Collection::key

File

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

Class

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

Namespace

Doctrine\Common\Collections

Code

public function key() {
  return key($this->_elements);
}