You are here

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

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

Calculate the optimal memory level for sitemap generation.

Parameters

int $new_limit: An optional PHP memory limit in bytes. If not provided, the value of getOptimalMemoryLimit() will be used.

1 method overrides XmlSitemapGeneratorInterface::setMemoryLimit()
XmlSitemapGenerator::setMemoryLimit in src/XmlSitemapGenerator.php
Calculate the optimal memory level for sitemap generation.

File

src/XmlSitemapGeneratorInterface.php, line 58

Class

XmlSitemapGeneratorInterface
Provides an interface defining a XmlSitemapGenerator service.

Namespace

Drupal\xmlsitemap

Code

public function setMemoryLimit($new_limit = NULL);