Xpressengine\Config\ConfigEntity::getIterator PHP Method

getIterator() public method

Get an iterator for the items.
    public function getIterator()
    {
        return new ArrayIterator($this->all());
    }

Usage Example

 /**
  * Get an iterator for the items.
  *
  * @return ArrayIterator
  */
 public function getIterator()
 {
     $parentAttributes = $this->parent !== null ? $this->parent->getIterator()->getArrayCopy() : [];
     return new ArrayIterator(array_merge($parentAttributes, $this->vo->getAttributes()));
 }