You are here

public function CerEndPointIterator::current in Corresponding Entity References 7.3

Implements Iterator::current().

File

includes/CerEndPointIterator.inc, line 36
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 current() {
  return $this->field
    ->child()
    ->getHandler($this->handler
    ->current());
}