You are here

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

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

Class

TokenAuthUser
Class TokenAuthUser.

Namespace

Drupal\simple_oauth\Authentication

Code

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