protected function AccessCheckBase::getUsersAllowedLanguages in Allowed Languages 8
Get the allowed languages for the specified user.
Parameters
\Drupal\user\UserInterface $user: The user to get allowed languages for.
Return value
\Drupal\language\Entity\ConfigurableLanguage[] An array of language entities.
1 call to AccessCheckBase::getUsersAllowedLanguages()
- AccessCheckBase::userIsAllowedToTranslateLanguage in src/
Access/ AccessCheckBase.php - Checks if the user is allowed to translate the specified language.
File
- src/
Access/ AccessCheckBase.php, line 63
Class
- AccessCheckBase
- Allowed languages access check base class.
Namespace
Drupal\allowed_languages\AccessCode
protected function getUsersAllowedLanguages(UserInterface $user) {
return allowed_languages_get_allowed_languages_for_user($user);
}