public function Entity::translations

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().

1 method overrides Entity::translations()
EntityNG::translations in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Overrides Entity::translations().

File

drupal/core/lib/Drupal/Core/Entity/Entity.php, line 310
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function translations() {
  return $this
    ->getTranslationLanguages(FALSE);
}