public function SimpleSitemapStorage::getChunk in Simple XML sitemap 4.x
@todo Duplicate query.
File
- src/
Entity/ SimpleSitemapStorage.php, line 234
Class
Namespace
Drupal\simple_sitemap\EntityCode
public function getChunk(SimpleSitemap $entity, ?bool $status, int $delta = SimpleSitemapStorage::SITEMAP_CHUNK_FIRST_DELTA) : string {
if ($delta === self::SITEMAP_INDEX_DELTA) {
throw new SitemapNotExistsException('The sitemap chunk delta needs to be higher than 0.');
}
return $this
->getSitemapString($entity, $this
->getIdByDelta($entity, $delta, $status), $status);
}