protected function SimpleSitemapQueue::doCreateItems in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 src/Queue/SimplesitemapQueue.php \Drupal\simple_sitemap\Queue\SimplesitemapQueue::doCreateItems()
1 call to SimpleSitemapQueue::doCreateItems()
- SimpleSitemapQueue::createItems in src/
Queue/ SimpleSitemapQueue.php
File
- src/
Queue/ SimpleSitemapQueue.php, line 97
Class
- SimpleSitemapQueue
- Class SimpleSitemapQueue
Namespace
Drupal\simple_sitemap\QueueCode
protected function doCreateItems($data_sets) {
$query = $this->connection
->insert(static::TABLE_NAME)
->fields([
'name',
'data',
'created',
]);
foreach ($data_sets as $i => $data) {
$query
->values([
$this->name,
serialize($data),
$this->time
->getRequestTime(),
]);
}
return $query
->execute();
}