You are here

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

Same name and namespace in other branches
  1. 8 src/XmlSitemapInterface.php \Drupal\xmlsitemap\XmlSitemapInterface::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.

1 method overrides XmlSitemapInterface::setContext()
XmlSitemap::setContext in src/Entity/XmlSitemap.php
Sets the context for the sitemap.

File

src/XmlSitemapInterface.php, line 124

Class

XmlSitemapInterface
Provides an interface defining a XmlSitemap entity.

Namespace

Drupal\xmlsitemap

Code

public function setContext($context);