You are here

protected function XmlSitemapWriter::isIndex in XML sitemap 8

Same name and namespace in other branches
  1. 2.x src/XmlSitemapWriter.php \Drupal\xmlsitemap\XmlSitemapWriter::isIndex()

If the page being written is the index.

Return value

bool TRUE if the sitemap index is being written, or FALSE otherwise.

2 calls to XmlSitemapWriter::isIndex()
XmlSitemapWriter::getRootAttributes in src/XmlSitemapWriter.php
Return an array of attributes for the root element of the XML.
XmlSitemapWriter::startDocument in src/XmlSitemapWriter.php
Starts an XML document.

File

src/XmlSitemapWriter.php, line 277

Class

XmlSitemapWriter
Extended class for writing XML sitemap files.

Namespace

Drupal\xmlsitemap

Code

protected function isIndex() {
  return $this->page === 'index';
}