function xmlsitemap_sitemap_get_context_hash in XML sitemap 8
Same name and namespace in other branches
- 6.2 xmlsitemap.module \xmlsitemap_sitemap_get_context_hash()
- 7.2 xmlsitemap.module \xmlsitemap_sitemap_get_context_hash()
- 2.x xmlsitemap.module \xmlsitemap_sitemap_get_context_hash()
Returns the hash string for a context.
Parameters
array $context: Context to be hashed.
Return value
string Hash string for the context.
Related topics
6 calls to xmlsitemap_sitemap_get_context_hash()
- XmlSitemapEnginesFunctionalTest::testSubmitSitemaps in xmlsitemap_engines/
tests/ src/ Functional/ XmlSitemapEnginesFunctionalTest.php - Create sitemaps and send them to search engines.
- XmlSitemapForm::save in src/
Form/ XmlSitemapForm.php - Form submission handler for the 'save' action.
- XmlSitemapListBuilderTest::testDefaultSitemap in tests/
src/ Functional/ XmlSitemapListBuilderTest.php - Test if the default sitemap exists.
- XmlSitemapListBuilderTest::testMoreSitemaps in tests/
src/ Functional/ XmlSitemapListBuilderTest.php - Test if multiple sitemaps exist and have consistent information.
- xmlsitemap_install in ./
xmlsitemap.install - Implements hook_install().
File
- ./
xmlsitemap.module, line 445 - xmlsitemap XML sitemap
Code
function xmlsitemap_sitemap_get_context_hash(array &$context) {
ksort($context);
return Crypt::hashBase64(serialize($context));
}