public function TranslatableInterface::getTranslationLanguages

You are here

8 TranslatableInterface.php public TranslatableInterface::getTranslationLanguages($include_default = TRUE)

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

An array of language objects, keyed by language codes.

1 method overrides TranslatableInterface::getTranslationLanguages()
ContentEntityBase::getTranslationLanguages in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Returns the languages the data is translated to.

File

core/lib/Drupal/Core/TypedData/TranslatableInterface.php, line 35
Contains \Drupal\Core\TypedData\TranslatableInterface.

Namespace

Drupal\Core\TypedData

Class

TranslatableInterface
Interface for translatable data.

Code

public function getTranslationLanguages($include_default = TRUE);