language_preprocess_block

language_preprocess_block(&$variables) Implements hook_preprocess_HOOK() for block templates. File core/modules/language/language.module, line 380 Add language handling functionality to Drupal. Code function language_preprocess_block(&$variables) { if ($variables['configuration']['provider'] == 'language') { $variables['attributes']['role'] = 'navigation'; } }

language_negotiation_url_prefixes_update

language_negotiation_url_prefixes_update() Update the list of prefixes from the installed languages. File core/modules/language/language.module, line 283 Add language handling functionality to Drupal. Code function language_negotiation_url_prefixes_update() { $config = \Drupal::configFactory()->getEditable('language.negotiation'); $prefixes = $config->get('url.prefixes'); foreach (\Drupal::languageManager()->getLanguages() as $language) { // The prefix for this language sho

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

language_negotiation_url_domains

language_negotiation_url_domains() Reads language domains. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal::config('language.negotiation')->get('url.domains') instead. File core/modules/language/language.module, line 305 Add language handling functionality to Drupal. Code function language_negotiation_url_domains() { return \Drupal::config('language.negotiation')->get('url.domains'); }

language_modules_uninstalled

language_modules_uninstalled($modules) Implements hook_modules_uninstalled(). File core/modules/language/language.module, line 341 Add language handling functionality to Drupal. Code function language_modules_uninstalled($modules) { language_modules_installed($modules); }

language_modules_installed

language_modules_installed($modules) Implements hook_modules_installed(). File core/modules/language/language.module, line 312 Add language handling functionality to Drupal. Code function language_modules_installed($modules) { if (!in_array('language', $modules)) { // Since newly (un)installed modules may change the default settings for // non-locked language types (e.g. content language), we need to resave the // language type configuration. /** @var \Drupal\language\Langua

language_language_types_info_alter

language_language_types_info_alter(array &$language_types) Implements hook_language_types_info_alter(). We can't set the fixed properties in \Drupal\Core\Language\LanguageManager, where the rest of the properties for the default language types are defined. The LanguageNegation classes are only loaded when the language module is enabled and we can't be sure of that in the LanguageManager. File core/modules/language/language.module, line 494 Add language handling functionality to Drupal. Co

language_help

language_help($route_name, RouteMatchInterface $route_match) Implements hook_help(). File core/modules/language/language.module, line 27 Add language handling functionality to Drupal. Code function language_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.language': $output = ''; $output .= '<h3>' . t('About') . '</h3>'; $output .= '<p>' . t('The Language module allows you to configure the languages used on

language_get_default_langcode

language_get_default_langcode($entity_type, $bundle) Returns the default language code assigned to an entity type and a bundle. Parameters string $entity_type: The entity type. string $bundle: The bundle name. Return value string The language code. File core/modules/language/language.module, line 236 Add language handling functionality to Drupal. Code function language_get_default_langcode($entity_type, $bundle) { $configuration = ContentLanguageSettings::loadByEntityTypeBundle($entity_ty

language_get_browser_drupal_langcode_mappings

language_get_browser_drupal_langcode_mappings() Returns language mappings between browser and Drupal language codes. Return value array An array containing browser language codes as keys with corresponding Drupal language codes as values. File core/modules/language/language.module, line 393 Add language handling functionality to Drupal. Code function language_get_browser_drupal_langcode_mappings() { $config = \Drupal::config('language.mappings'); if ($config->isNew()) { return arr