public function TokenAuthUser::getTranslationLanguages 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::getTranslationLanguages()
- 8 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getTranslationLanguages()
- 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getTranslationLanguages()
- 5.x src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getTranslationLanguages()
Returns the languages the data is translated to.
Parameters
bool $include_default: (optional) Whether the default language should be included. Defaults to TRUE.
Return value
\Drupal\Core\Language\LanguageInterface[] An associative array of language objects, keyed by language codes.
Overrides TranslatableInterface::getTranslationLanguages
File
- src/
Authentication/ TokenAuthUser.php, line 671
Class
- TokenAuthUser
- The decorated user class with token information.
Namespace
Drupal\simple_oauth\AuthenticationCode
public function getTranslationLanguages($include_default = TRUE) {
return $this->subject
->getTranslationLanguages($include_default);
}