public function AllowedLanguagesManagerInterface::hasPermissionForLanguage in Allowed Languages 2.x
Checks if the user is allowed to translate the specified language.
Parameters
\Drupal\Core\Language\LanguageInterface $language: The language to check for.
\Drupal\Core\Session\AccountInterface $account: The user to check.
Return value
bool If the user is allowed to or not.
1 method overrides AllowedLanguagesManagerInterface::hasPermissionForLanguage()
- AllowedLanguagesManager::hasPermissionForLanguage in src/
AllowedLanguagesManager.php - Checks if the user is allowed to translate the specified language.
File
- src/
AllowedLanguagesManagerInterface.php, line 49
Class
- AllowedLanguagesManagerInterface
- The allowed language manager controls access to content by language.
Namespace
Drupal\allowed_languagesCode
public function hasPermissionForLanguage(LanguageInterface $language, AccountInterface $account = NULL);