function language_negotiation_url_prefixes in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/language.module \language_negotiation_url_prefixes()
Reads language prefixes and uses the langcode if no prefix is set.
Deprecated
in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal::config('language.negotiation')->get('url.prefixes') instead.
2 calls to language_negotiation_url_prefixes()
- CommentLanguageTest::testCommentLanguage in core/
modules/ comment/ src/ Tests/ CommentLanguageTest.php - Test that comment language is properly set.
- LanguageUrlRewritingTest::checkUrl in core/
modules/ language/ src/ Tests/ LanguageUrlRewritingTest.php - Check URL rewriting for the given language.
File
- core/
modules/ language/ language.module, line 276 - Add language handling functionality to Drupal.
Code
function language_negotiation_url_prefixes() {
return \Drupal::config('language.negotiation')
->get('url.prefixes');
}