You are here

public static function XmlSitemapInterface::loadByContext in XML sitemap 2.x

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

Returns the sitemap with the context specified as parameter.

Parameters

array $context: An optional XML sitemap context array to use to find the correct XML sitemap. If not provided, the current site's context will be used.

Return value

\Drupal\xmlsitemap\XmlSitemapInterface Sitemap with the specified context or NULL.

1 method overrides XmlSitemapInterface::loadByContext()
XmlSitemap::loadByContext in src/Entity/XmlSitemap.php
Returns the sitemap with the context specified as parameter.

File

src/XmlSitemapInterface.php, line 147

Class

XmlSitemapInterface
Provides an interface defining a XmlSitemap entity.

Namespace

Drupal\xmlsitemap

Code

public static function loadByContext(array $context = NULL);