NegotiationBrowserForm::language_get_browser_drupal_langcode_mappings

protected NegotiationBrowserForm::language_get_browser_drupal_langcode_mappings()

Retrieves the browser's langcode mapping configuration array.

Return value

array The browser's langcode mapping configuration array.

File

core/modules/language/src/Form/NegotiationBrowserForm.php, line 207

Class

NegotiationBrowserForm
Configure the browser language negotiation method for this site.

Namespace

Drupal\language\Form

Code

1
2
3
4
5
6
7
protected function language_get_browser_drupal_langcode_mappings() {
  $config = $this->config('language.mappings');
  if ($config->isNew()) {
    return array();
  }
  return $config->get('map');
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.