Returns the languages the entity is translated to.
@todo: Remove once all entity types implement the entity field API. This is deprecated by \Drupal\Core\TypedData\TranslatableInterface::getTranslationLanguages().
public function translations() {
return $this
->getTranslationLanguages(FALSE);
}