You are here

public function TokenAuthUser::getTranslationLanguages in Simple OAuth (OAuth2) & OpenID Connect 8.3

Same name and namespace in other branches
  1. 8.4 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getTranslationLanguages()
  2. 8 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getTranslationLanguages()
  3. 8.2 src/Authentication/TokenAuthUser.php \Drupal\simple_oauth\Authentication\TokenAuthUser::getTranslationLanguages()
  4. 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\Authentication

Code

public function getTranslationLanguages($include_default = TRUE) {
  return $this->subject
    ->getTranslationLanguages($include_default);
}