You are here

interface LanguageLocaleMapperInterface in Lingotek Translation 8

Same name and namespace in other branches
  1. 8.2 src/LanguageLocaleMapperInterface.php \Drupal\lingotek\LanguageLocaleMapperInterface
  2. 4.0.x src/LanguageLocaleMapperInterface.php \Drupal\lingotek\LanguageLocaleMapperInterface
  3. 3.0.x src/LanguageLocaleMapperInterface.php \Drupal\lingotek\LanguageLocaleMapperInterface
  4. 3.1.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

11 files declare their use of LanguageLocaleMapperInterface
LingotekConfigManagementForm.php in src/Form/LingotekConfigManagementForm.php
Contains \Drupal\Lingotek\Form\LingotekConfigManagementForm.
LingotekConfigTranslationController.php in src/Controller/LingotekConfigTranslationController.php
LingotekContentTranslationForm.php in src/Form/LingotekContentTranslationForm.php
Contains \Drupal\lingotek\Form\LingotekContentTranslationForm.
LingotekControllerBase.php in src/Controller/LingotekControllerBase.php
Contains \Drupal\lingotek\Controller\LingotekControllerBase.
LingotekDashboardController.php in src/Controller/LingotekDashboardController.php

... See full list

File

src/LanguageLocaleMapperInterface.php, line 7

Namespace

Drupal\lingotek
View source
interface LanguageLocaleMapperInterface {

  /**
   * Gets the Drupal language for the given Lingotek locale.
   *
   * @param string $locale
   *   The Lingotek locale.
   *
   * @return 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 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