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.

2 methods override TranslatableInterface::getTranslationLanguages()
Entity::getTranslationLanguages in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements TranslatableInterface::getTranslationLanguages().
ViewUI::getTranslationLanguages in drupal/core/modules/views/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
Definition of Drupal\Core\TypedData\TranslatableInterface.

Class

TranslatableInterface
Interface for translatable data.

Namespace

Drupal\Core\TypedData

Code

public function getTranslationLanguages($include_default = TRUE);