public function AllowedLanguagesManagerInterface::assignedLanguages in Allowed Languages 2.x
Get the allowed languages for the specified user.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user to get allowed languages for.
Return value
array An array of allowed language ids.
1 method overrides AllowedLanguagesManagerInterface::assignedLanguages()
- AllowedLanguagesManager::assignedLanguages in src/
AllowedLanguagesManager.php - Get the allowed languages for the specified user.
File
- src/
AllowedLanguagesManagerInterface.php, line 36
Class
- AllowedLanguagesManagerInterface
- The allowed language manager controls access to content by language.
Namespace
Drupal\allowed_languagesCode
public function assignedLanguages(AccountInterface $account = NULL);