function language_xmlsitemap_context_info in XML sitemap 2.x
Same name and namespace in other branches
- 8 xmlsitemap.module \language_xmlsitemap_context_info()
Implements hook_xmlsitemap_context_info() for language module.
File
- ./
xmlsitemap.module, line 1705 - xmlsitemap XML sitemap
Code
function language_xmlsitemap_context_info() {
$context['language'] = [
'label' => t('Language'),
'summary callback' => 'language_name',
'default' => \Drupal::languageManager()
->getDefaultLanguage()
->getId(),
];
return $context;
}