public function TranslatableInterface::getTranslationLanguages

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.

3 methods override TranslatableInterface::getTranslationLanguages()
Entity::getTranslationLanguages in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements \Drupal\Core\TypedData\TranslatableInterface::getTranslationLanguages().
EntityBCDecorator::getTranslationLanguages in drupal/core/lib/Drupal/Core/Entity/EntityBCDecorator.php
Forwards the call to the decorated entity.
ViewUI::getTranslationLanguages in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\TypedData\TranslatableInterface::getTranslationLanguages().

File

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

Class

TranslatableInterface
Interface for translatable data.

Namespace

Drupal\Core\TypedData

Code

public function getTranslationLanguages($include_default = TRUE);