class UserAgent
Provides user agent related utility functions.
Hierarchy
- class \Drupal\Component\Utility\UserAgent
Related topics
- Utility classes and functions
- Overview of utility classes and functions for developers.
File
- core/lib/Drupal/Component/Utility/UserAgent.php, line 10
Namespace
Drupal\Component\UtilityMembers
Name | Modifiers | Type | Description |
---|---|---|---|
UserAgent::getBestMatchingLangcode | public static | function | Identifies user agent language from the Accept-language HTTP header. |
© 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!lib!Drupal!Component!Utility!UserAgent.php/class/UserAgent/8.1.x