public function TranslatableInterface::getTranslationLanguages
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
\Drupal\Core\Language\LanguageInterface[] An associative array of language objects, keyed by language codes.
File
- core/lib/Drupal/Core/TypedData/TranslatableInterface.php, line 44
Class
- TranslatableInterface
- Interface for translatable data.
Namespace
Drupal\Core\TypedDataCode
public function getTranslationLanguages($include_default = TRUE);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!TypedData!TranslatableInterface.php/function/TranslatableInterface::getTranslationLanguages/8.1.x