private function AdminUserLanguageUserTest::getAdminUserLang in Admin User Language 8
Parameters
$uid:
Return value
mixed
1 call to AdminUserLanguageUserTest::getAdminUserLang()
- AdminUserLanguageUserTest::testCoreFunctionalityOnUserRegistrationAndEdit in tests/
src/ Functional/ AdminUserLanguageUserTest.php - Test if an admin language is correctly set on user registration or edit.
File
- tests/
src/ Functional/ AdminUserLanguageUserTest.php, line 105
Class
- AdminUserLanguageUserTest
- Tests entity presave hook to check admin_user_language functionality.
Namespace
Drupal\Tests\admin_user_language\FunctionalCode
private function getAdminUserLang($uid) {
$user = $this
->getDrupalUser($uid);
return $user
->get('preferred_admin_langcode')
->getValue();
}