You are here

protected function Simplesitemap::fetchSitemapChunk in Simple XML sitemap 8.3

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

Code

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