protected function Simplesitemap::fetchSitemapChunk in Simple XML sitemap 8.3
Same name and namespace in other branches
- 8.2 src/Simplesitemap.php \Drupal\simple_sitemap\Simplesitemap::fetchSitemapChunk()
Fetches a single sitemap chunk by ID.
Parameters
int $id: The chunk ID.
Return value
object A sitemap chunk object.
File
- src/
Simplesitemap.php, line 315
Class
- Simplesitemap
- Class Simplesitemap @package Drupal\simple_sitemap
Namespace
Drupal\simple_sitemapCode
protected function fetchSitemapChunk($id) {
return $this->db
->query('SELECT * FROM {simple_sitemap} WHERE id = :id', [
':id' => $id,
])
->fetchObject();
}