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

protected function language_get_browser_drupal_langcode_mappings() {
  $config = $this->config('language.mappings');
  if ($config->isNew()) {
    return array();
  }
  return $config->get('map');
}
doc_Drupal
2016-10-29 09:29:56
Comments
Leave a Comment

Please login to continue.