public function Entity::getTranslation

Implements TranslatableInterface::getTranslation().

Overrides TranslatableInterface::getTranslation

1 method overrides Entity::getTranslation()
EntityNG::getTranslation in drupal/core/lib/Drupal/Core/Entity/EntityNG.php
Implements TranslatableInterface::getTranslation().

File

drupal/core/lib/Drupal/Core/Entity/Entity.php, line 271
Definition of Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function getTranslation($langcode, $strict = TRUE) {

  // @todo: Replace by EntityNG implementation once all entity types have been
  // converted to use the entity field API.
}