diff --git a/system/src/Grav/Common/Iterator.php b/system/src/Grav/Common/Iterator.php index 906a9be40..88f7af2c7 100644 --- a/system/src/Grav/Common/Iterator.php +++ b/system/src/Grav/Common/Iterator.php @@ -45,6 +45,16 @@ class Iterator implements \ArrayAccess, \Iterator, \Countable, \Serializable } } + /** + * Return the internal array used in this Iterator + * + * @return array + */ + public function toArray() + { + return $this->items; + } + /** * Convents iterator to a comma separated list. *