function Collection::get

Same name in this branch

Gets the element at the specified key/index.

Parameters

string|integer $key The key/index of the element to retrieve.:

Return value

mixed

1 method overrides Collection::get()
ArrayCollection::get in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php
Gets the element with the given key/index.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/Collection.php, line 108

Class

Collection
The missing (SPL) Collection/Array/OrderedMap interface.

Namespace

Doctrine\Common\Collections

Code

function get($key);