Adds an element to the collection.
Parameters
mixed $value:
Return value
boolean Always TRUE.
Overrides Collection::add
File
- drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Collections/ArrayCollection.php, line 337
Class
- ArrayCollection
- An ArrayCollection is a Collection implementation that wraps a regular PHP array.
Namespace
Doctrine\Common\Collections
Code
public function add($value) {
$this->_elements[] = $value;
return true;
}