public function WebformIteratorAggregate::getIterator in Webform Scheduled Tasks 8.2
File
- src/
Iterator/ WebformIteratorAggregate.php, line 53
Class
- WebformIteratorAggregate
- The WebformIteratorAggregate class.
Namespace
Drupal\webform_scheduled_tasks\IteratorCode
public function getIterator() {
foreach (array_chunk($this->submissionIds, $this->chunkSize) as $ids_chunk) {
foreach ($this->submissionStorage
->loadMultiple($ids_chunk) as $entity) {
(yield $entity);
}
}
}