You are here

protected function XmlSitemapWriter::isIndex in XML sitemap 2.x

Same name and namespace in other branches
  1. 8 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 263

Class

XmlSitemapWriter
Extended class for writing XML sitemap files.

Namespace

Drupal\xmlsitemap

Code

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