You are here

function language_xmlsitemap_context in XML sitemap 2.x

Same name and namespace in other branches
  1. 8 xmlsitemap.module \language_xmlsitemap_context()

Implements hook_xmlsitemap_context() for language module.

File

./xmlsitemap.module, line 1717
xmlsitemap XML sitemap

Code

function language_xmlsitemap_context() {
  $language = \Drupal::languageManager()
    ->getCurrentLanguage();
  $context['language'] = $language
    ->getId();
  return $context;
}