You are here

function language_xmlsitemap_context_info in XML sitemap 8

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

Implements hook_xmlsitemap_context_info() for language module.

File

./xmlsitemap.module, line 1745
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;
}