function 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');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!language!language.module/function/language_negotiation_url_prefixes/8.1.x