Skip to content

Wire data get iterator

Enables the object data properties to be iterable as an array

Example

foreach($item as $key => $value) {
  // ...
}

Usage

$arrayObject = $wireData->getIterator();

Return value

ArrayObject