You are here

public function FallbackControllerInterface::getTranslation in Entity Language Fallback 8

Parameters

string $lang_code: Language code

\Drupal\Core\Entity\ContentEntityInterface $entity: Entity

Return value

mixed Fallback entity translation, or FALSE if nothing was found.

1 method overrides FallbackControllerInterface::getTranslation()
FallbackController::getTranslation in src/FallbackController.php

File

src/FallbackControllerInterface.php, line 38

Class

FallbackControllerInterface

Namespace

Drupal\entity_language_fallback

Code

public function getTranslation($lang_code, ContentEntityInterface $entity);