function language_negotiation_url_prefixes

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

9 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_url_prefixes_update in drupal/core/modules/language/language.negotiation.inc
Update the list of prefixes from the installed languages.
language_url_fallback in drupal/core/modules/language/language.negotiation.inc
Determines the language to be assigned to URLs when none is detected.

... See full list

File

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

Code

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