You are here

public function XmlSitemap::setContext in XML sitemap 2.x

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

Sets the context for the sitemap.

Parameters

string $context: The context.

Return value

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

Overrides XmlSitemapInterface::setContext

File

src/Entity/XmlSitemap.php, line 184

Class

XmlSitemap
Defines the XmlSitemap entity.

Namespace

Drupal\xmlsitemap\Entity

Code

public function setContext($context) {
  $this->context = $context;
  return $this;
}