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()
File
- src/
FallbackControllerInterface.php, line 38
Class
Namespace
Drupal\entity_language_fallbackCode
public function getTranslation($lang_code, ContentEntityInterface $entity);