You are here

protected function Simplesitemap::fetchSitemapChunk in Simple XML sitemap 8.2

Same name and namespace in other branches
  1. 8.3 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 222

Class

Simplesitemap
Class Simplesitemap @package Drupal\simple_sitemap

Namespace

Drupal\simple_sitemap

Code

protected function fetchSitemapChunk($id) {
  return $this->db
    ->query('SELECT * FROM {simple_sitemap} WHERE id = :id', [
    ':id' => $id,
  ])
    ->fetchObject();
}