Search for langcode

  1. Search 7.x for langcode
  2. Search 9.5.x for langcode
  3. Search 10.3.x for langcode
  4. Search 11.x for langcode
  5. Other projects
Title Object type File name Summary
User::getPreferredLangcode function core/modules/user/src/Entity/User.php Returns the preferred language code of the account.
UserAgent::getBestMatchingLangcode function core/lib/Drupal/Component/Utility/UserAgent.php Identifies user agent language from the Accept-language HTTP header.
UserAgentTest::providerTestGetBestMatchingLangcode function core/tests/Drupal/Tests/Component/Utility/UserAgentTest.php Data provider for testGetBestMatchingLangcode().
UserAgentTest::testGetBestMatchingLangcode function core/tests/Drupal/Tests/Component/Utility/UserAgentTest.php Test matching language from user agent.
UserLangcode class core/modules/user/src/Plugin/migrate/process/UserLangcode.php Provides a process plugin for the user langcode.
UserLangcode.php file core/modules/user/src/Plugin/migrate/process/UserLangcode.php
UserLangcode::$languageManager property core/modules/user/src/Plugin/migrate/process/UserLangcode.php The language manager.
UserLangcode::create function core/modules/user/src/Plugin/migrate/process/UserLangcode.php Creates an instance of the plugin.
UserLangcode::transform function core/modules/user/src/Plugin/migrate/process/UserLangcode.php Performs the associated process.
UserLangcode::__construct function core/modules/user/src/Plugin/migrate/process/UserLangcode.php Constructs a UserLangcode object.
UserSession::$preferred_admin_langcode property core/lib/Drupal/Core/Session/UserSession.php The preferred administrative language code of the account.
UserSession::$preferred_langcode property core/lib/Drupal/Core/Session/UserSession.php The preferred language code of the account.
UserSession::getPreferredAdminLangcode function core/lib/Drupal/Core/Session/UserSession.php Returns the preferred administrative language code of the account.
UserSession::getPreferredLangcode function core/lib/Drupal/Core/Session/UserSession.php Returns the preferred language code of the account.
ViewsData::$langcode property core/modules/views/src/ViewsData.php The current language code.
_menu_link_content_post_update_make_menu_link_content_revisionable__fix_default_langcode function core/modules/menu_link_content/menu_link_content.post_update.php Fixes recoverable data integrity issues in the "default_langcode" field.
_taxonomy_post_update_make_taxonomy_term_revisionable__fix_default_langcode function core/modules/taxonomy/taxonomy.post_update.php Fixes recoverable data integrity issues in the "default_langcode" field.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.