Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface::getTranslationLanguages()
- 9 core/lib/Drupal/Core/TypedData/TranslatableInterface.php \Drupal\Core\TypedData\TranslatableInterface::getTranslationLanguages()
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.
1 call to TranslatableInterface::getTranslationLanguages()
- Node::preSave in core/
modules/ node/ src/ Entity/ Node.php - Acts on an entity before the presave hook is invoked.
File
- core/
lib/ Drupal/ Core/ TypedData/ TranslatableInterface.php, line 59
Class
- TranslatableInterface
- Interface for translatable data.
Namespace
Drupal\Core\TypedDataCode
public function getTranslationLanguages($include_default = TRUE);