You are here

public function XmlSitemap::setChunks in XML sitemap 8

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

Sets the number of chunks.

Parameters

string $chunks: The number of chunks.

Return value

\Drupal\xmlsitemap\XmlSitemapInterface The class instance that this method is called on.

Overrides XmlSitemapInterface::setChunks

File

src/Entity/XmlSitemap.php, line 160

Class

XmlSitemap
Defines the XmlSitemap entity.

Namespace

Drupal\xmlsitemap\Entity

Code

public function setChunks($chunks) {
  $this->chunks = $chunks;
  return $this;
}