LanguageLocaleMapperInterface.php in Lingotek Translation 8
Same filename and directory in other branches
- 8.2 src/LanguageLocaleMapperInterface.php
- 4.0.x src/LanguageLocaleMapperInterface.php
- 3.0.x src/LanguageLocaleMapperInterface.php
- 3.1.x src/LanguageLocaleMapperInterface.php
- 3.2.x src/LanguageLocaleMapperInterface.php
- 3.3.x src/LanguageLocaleMapperInterface.php
- 3.4.x src/LanguageLocaleMapperInterface.php
- 3.5.x src/LanguageLocaleMapperInterface.php
- 3.6.x src/LanguageLocaleMapperInterface.php
- 3.7.x src/LanguageLocaleMapperInterface.php
- 3.8.x src/LanguageLocaleMapperInterface.php
Namespace
Drupal\lingotekFile
src/LanguageLocaleMapperInterface.phpView source
<?php
namespace Drupal\lingotek;
use Drupal\language\ConfigurableLanguageInterface;
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);
}
Interfaces
Name | Description |
---|---|
LanguageLocaleMapperInterface |