You are here

protected function Simplesitemap::fetchSitemapChunkInfo in Simple XML sitemap 8.2

Fetches all sitemap chunk timestamps keyed by chunk ID.

Return value

array An array containing chunk creation timestamps keyed by chunk ID.

2 calls to Simplesitemap::fetchSitemapChunkInfo()
Simplesitemap::getGeneratedAgo in src/Simplesitemap.php
Returns a 'time ago' string of last timestamp generation.
Simplesitemap::getSitemap in src/Simplesitemap.php
Returns the whole sitemap, a requested sitemap chunk, or the sitemap index file.

File

src/Simplesitemap.php, line 207

Class

Simplesitemap
Class Simplesitemap @package Drupal\simple_sitemap

Namespace

Drupal\simple_sitemap

Code

protected function fetchSitemapChunkInfo() {
  return $this->db
    ->query('SELECT id, sitemap_created FROM {simple_sitemap}')
    ->fetchAllAssoc('id');
}