You are here

function language_xmlsitemap_context in XML sitemap 8

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

Implements hook_xmlsitemap_context() for language module.

File

./xmlsitemap.module, line 1757
xmlsitemap XML sitemap

Code

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