Returns the languages the data is translated to.
Parameters
bool $include_default:
Whether the default language should be included.
Return value
An array of language objects, keyed by language codes.
File
- drupal/core/lib/Drupal/Core/TypedData/TranslatableInterface.php, line 32
- Definition of Drupal\Core\TypedData\TranslatableInterface.
Class
- TranslatableInterface
- Interface for translatable data.
Namespace
Drupal\Core\TypedData
Code
public function getTranslationLanguages($include_default = TRUE);