You are here

private function Simplesitemap::get_sitemap_index in Simple XML sitemap 8

Generates and returns the sitemap index as string.

Return value

string The sitemap index.

1 call to Simplesitemap::get_sitemap_index()
Simplesitemap::get_sitemap in src/Simplesitemap.php
Returns the whole sitemap, a requested sitemap chunk, or the sitemap index file.

File

src/Simplesitemap.php, line 211
Contains \Drupal\simplesitemap\Simplesitemap.

Class

Simplesitemap
Simplesitemap class.

Namespace

Drupal\simplesitemap

Code

private function get_sitemap_index() {
  $generator = new SitemapGenerator();
  return $generator
    ->generate_sitemap_index($this->sitemap);
}