public function CerEndPointIterator::__construct in Corresponding Entity References 7.3
File
- includes/
CerEndPointIterator.inc, line 28 - Contains CerEndPointIterator.
Class
- CerEndPointIterator
- @class The purpose of this iterator is to wrap around all the "endpoints" in a field chain. An endpoint is a CerFieldHandler for a field that hasn't got a child. This is necessary in order to support infinite levels of embedded entities…
Code
public function __construct(CerField $field, EntityDrupalWrapper $entity) {
$this->field = $field;
$this->handler = $field
->getHandler($entity);
}