public static function WebformIteratorAggregate::createFromQuery in Webform Scheduled Tasks 8.2
Create an iterator aggregate from an entity query.
Parameters
\Drupal\Core\Entity\Query\QueryInterface $query: An un-executed entity query for webform submissions.
Return value
static
File
- src/
Iterator/ WebformIteratorAggregate.php, line 69
Class
- WebformIteratorAggregate
- The WebformIteratorAggregate class.
Namespace
Drupal\webform_scheduled_tasks\IteratorCode
public static function createFromQuery(QueryInterface $query) {
return new static($query
->execute(), 50, \Drupal::service('entity_type.manager')
->getStorage('webform_submission'));
}