public function XmlSitemapGeneratorInterface::generateIndex in XML sitemap 8
Same name and namespace in other branches
- 2.x 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\xmlsitemapCode
public function generateIndex(XmlSitemapInterface $sitemap, $pages = NULL);