function language_negotiation_url_prefixes

Reads language prefixes and uses the langcode if no prefix is set.

10 calls to language_negotiation_url_prefixes()
CommentLanguageTest::testCommentLanguage in drupal/core/modules/comment/lib/Drupal/comment/Tests/CommentLanguageTest.php
Test that comment language is properly set.
LanguageUrlRewritingTest::checkUrl in drupal/core/modules/language/lib/Drupal/language/Tests/LanguageUrlRewritingTest.php
Check URL rewriting for the given language.
language_language_delete in drupal/core/modules/language/language.module
Implements hook_language_delete().
language_negotiation_configure_url_form in drupal/core/modules/language/language.admin.inc
Builds the URL language negotiation method configuration form.
language_negotiation_url_prefixes_update in drupal/core/modules/language/language.negotiation.inc
Update the list of prefixes from the installed languages.

... See full list

1 string reference to 'language_negotiation_url_prefixes'
locale_update_8008 in drupal/core/modules/locale/locale.install
Rename the option variables of the locale language negotiation.

File

drupal/core/modules/language/language.negotiation.inc, line 506
Language negotiation functions.

Code

function language_negotiation_url_prefixes() {
  return config('language.negotiation')
    ->get('url.prefixes');
}