You are here

LanguageLocaleMapperInterface.php in Lingotek Translation 3.4.x

Namespace

Drupal\lingotek

File

src/LanguageLocaleMapperInterface.php
View source
<?php

namespace Drupal\lingotek;

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);

}

Interfaces