Gets all keys/indexes of the collection elements.
Return value
array
Overrides Collection::getKeys
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php, line 290
Class
- ArrayCollection
- An ArrayCollection is a Collection implementation that wraps a regular PHP array.
Namespace
Doctrine\Common\Collections
Code
public function getKeys() {
return array_keys($this->_elements);
}