language_negotiation_url_prefixes

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.

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');
}
doc_Drupal
2016-10-29 09:23:03
Comments
Leave a Comment

Please login to continue.