public function TokenAuthUser::hasTranslation in Simple OAuth (OAuth2) & OpenID Connect 8.3
Same name and namespace in other branches
- 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::hasTranslation()
- 8 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::hasTranslation()
- 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::hasTranslation()
- 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::hasTranslation()
Checks there is a translation for the given language code.
Parameters
string $langcode: The language code identifying the translation.
Return value
bool TRUE if the translation exists, FALSE otherwise.
Overrides TranslatableInterface::hasTranslation
File
- src/
Authentication/ TokenAuthUser.php, line 692
Class
- TokenAuthUser
- The decorated user class with token information.
Namespace
Drupal\simple_oauth\AuthenticationCode
public function hasTranslation($langcode) {
return $this->subject
->hasTranslation($langcode);
}