Language::getDefaultLangcode

protected static Language::getDefaultLangcode() Gets the default langcode. Return value string The current default langcode. File core/lib/Drupal/Core/Language/Language.php, line 173 Class Language An object containing the information for an interface language. Namespace Drupal\Core\Language Code protected static function getDefaultLangcode() { $language = \Drupal::service('language.default')->get(); return $language->getId(); }

Language::$weight

The weight, used for ordering languages in lists, like selects or tables. Type: int File core/lib/Drupal/Core/Language/Language.php, line 57 Class Language An object containing the information for an interface language. Namespace Drupal\Core\Language Code protected $weight = 0;

Language::$name

The human readable English name. Type: string File core/lib/Drupal/Core/Language/Language.php, line 34 Class Language An object containing the information for an interface language. Namespace Drupal\Core\Language Code protected $name = '';

Language::$locked

Locked indicates a language used by the system, not an actual language. Examples of locked languages are, LANGCODE_NOT_SPECIFIED, und, and LANGCODE_NOT_APPLICABLE, zxx, which are usually shown in language selects but hidden in places like the Language configuration and cannot be deleted. Type: bool File core/lib/Drupal/Core/Language/Language.php, line 68 Class Language An object containing the information for an interface language. Namespace Drupal\Core\Language Code protected $locked

Language::$id

The ID, langcode. Type: string File core/lib/Drupal/Core/Language/Language.php, line 41 Class Language An object containing the information for an interface language. Namespace Drupal\Core\Language Code protected $id = '';

Language::$direction

The direction, left-to-right, or right-to-left. Defined using constants, either self::DIRECTION_LTR or self::DIRECTION_RTL. Type: int File core/lib/Drupal/Core/Language/Language.php, line 50 Class Language An object containing the information for an interface language. Namespace Drupal\Core\Language Code protected $direction = self::DIRECTION_LTR;

Language::$defaultValues

The values to use to instantiate the default language. Type: array File core/lib/Drupal/Core/Language/Language.php, line 19 Class Language An object containing the information for an interface language. Namespace Drupal\Core\Language Code public static $defaultValues = array( 'id' => 'en', 'name' => 'English', 'direction' => self::DIRECTION_LTR, 'weight' => 0, 'locked' => FALSE, );

language.module

Add language handling functionality to Drupal. File core/modules/language/language.module Functions Name Description language_configurable_language_delete Implements hook_ENTITY_TYPE_delete() for 'configurable_language'. language_configurable_language_insert Implements hook_ENTITY_TYPE_insert() for 'configurable_language'. language_configuration_element_submit Submit handler for the forms that have a language_configuration element. language_element_info_alter Implements ho

language.admin.inc

Administration functions for language.module. File core/modules/language/language.admin.inc Functions Name Description template_preprocess_language_content_settings_table Prepares variables for language content settings table templates. template_preprocess_language_negotiation_configure_form Prepares variables for language negotiation configuration form.

language-negotiation-configure-form.html.twig

Default theme implementation for a language negotiation configuration form. Available variables: language_types: A list of language negotiation types. Each language type contains the following: type: The machine name for the negotiation type. title: The language negotiation type name. description: A description for how the language negotiation type operates. configurable: A radio element to toggle the table. table: A draggable table for the language detection methods of this type. childr