You are here

public function XmlSitemapGeneratorInterface::generateIndex in XML sitemap 2.x

Same name and namespace in other branches
  1. 8 src/XmlSitemapGeneratorInterface.php \Drupal\xmlsitemap\XmlSitemapGeneratorInterface::generateIndex()

Generate the index sitemap.

Parameters

\Drupal\xmlsitemap\XmlSitemapInterface $sitemap: The XML sitemap config entity.

int|null $pages: The number of pages to write in the sitemap. Defaults to the value of $sitemap->getChunks().

1 method overrides XmlSitemapGeneratorInterface::generateIndex()
XmlSitemapGenerator::generateIndex in src/XmlSitemapGenerator.php
Generate the index sitemap.

File

src/XmlSitemapGeneratorInterface.php, line 91

Class

XmlSitemapGeneratorInterface
Provides an interface defining a XmlSitemapGenerator service.

Namespace

Drupal\xmlsitemap

Code

public function generateIndex(XmlSitemapInterface $sitemap, $pages = NULL);