You are here

public function LingotekContentTranslationServiceInterface::getSourceLocale in Lingotek Translation 3.1.x

Same name and namespace in other branches
  1. 8 src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()
  2. 8.2 src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()
  3. 4.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()
  4. 3.0.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()
  5. 3.2.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()
  6. 3.3.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()
  7. 3.4.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()
  8. 3.5.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()
  9. 3.6.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()
  10. 3.7.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()
  11. 3.8.x src/LingotekContentTranslationServiceInterface.php \Drupal\lingotek\LingotekContentTranslationServiceInterface::getSourceLocale()

Gets the translation source locale of a given entity.

Parameters

\Drupal\Core\Entity\ContentEntityInterface &$entity: The entity which we want to get the source locale.

Return value

string The locale as expected by the Lingotek service.

1 method overrides LingotekContentTranslationServiceInterface::getSourceLocale()
LingotekContentTranslationService::getSourceLocale in src/LingotekContentTranslationService.php
Gets the translation source locale of a given entity.

File

src/LingotekContentTranslationServiceInterface.php, line 163

Class

LingotekContentTranslationServiceInterface
Service for managing Lingotek content translations.

Namespace

Drupal\lingotek

Code

public function getSourceLocale(ContentEntityInterface &$entity);