You are here

public function LingotekConfigTranslationServiceInterface::getSourceLocale in Lingotek Translation 8

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

Gets the translation source locale of a given entity.

Parameters

\Drupal\Core\Config\Entity\ConfigEntityInterface $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 LingotekConfigTranslationServiceInterface::getSourceLocale()
LingotekConfigTranslationService::getSourceLocale in src/LingotekConfigTranslationService.php
Gets the translation source locale of a given entity.

File

src/LingotekConfigTranslationServiceInterface.php, line 191
Contains \Drupal\lingotek\LingotekConfigTranslationServiceInterface.

Class

LingotekConfigTranslationServiceInterface
Service for managing Lingotek configuration translations.

Namespace

Drupal\lingotek

Code

public function getSourceLocale(ConfigEntityInterface &$entity);