You are here

interface LanguageLocaleMapperInterface in Lingotek Translation 3.1.x

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

Hierarchy

Expanded class hierarchy of LanguageLocaleMapperInterface

All classes that implement LanguageLocaleMapperInterface

21 files declare their use of LanguageLocaleMapperInterface
LingotekCliService.php in src/Cli/LingotekCliService.php
LingotekCliServiceTest.php in tests/src/Unit/Cli/LingotekCliServiceTest.php
LingotekConfigManagementForm.php in src/Form/LingotekConfigManagementForm.php
LingotekConfigTranslationController.php in src/Controller/LingotekConfigTranslationController.php
LingotekContentEntityConfigurableActionBase.php in src/Plugin/Action/LingotekContentEntityConfigurableActionBase.php

... See full list

File

src/LanguageLocaleMapperInterface.php, line 5

Namespace

Drupal\lingotek
View source
interface LanguageLocaleMapperInterface {

  /**
   * Gets the Drupal language for the given Lingotek locale.
   *
   * @param string $locale
   *   The Lingotek locale.
   *
   * @return \Drupal\language\ConfigurableLanguageInterface|null
   *   The Drupal language created for this locale, or NULL if there is none.
   */
  public function getConfigurableLanguageForLocale($locale);

  /**
   * Gets the Lingotek locale for the given Drupal langcode.
   *
   * @param string $langcode
   *   The Drupal langcode.
   *
   * @return \Drupal\language\ConfigurableLanguageInterface|null
   *   The Lingotek locale.
   */
  public function getLocaleForLangcode($langcode);

}

Members

Namesort descending Modifiers Type Description Overrides
LanguageLocaleMapperInterface::getConfigurableLanguageForLocale public function Gets the Drupal language for the given Lingotek locale. 1
LanguageLocaleMapperInterface::getLocaleForLangcode public function Gets the Lingotek locale for the given Drupal langcode. 1