public function LocaleTypedConfig::getTranslation

File

drupal/core/modules/locale/lib/Drupal/locale/LocaleTypedConfig.php, line 69
Contains \Drupal\locale\LocaleTypedConfig.

Class

LocaleTypedConfig
Defines the locale configuration wrapper object.

Namespace

Drupal\locale

Code

public function getTranslation($langcode) {
  $options = array(
    'source' => $this->langcode,
    'target' => $langcode,
  );
  $data = $this
    ->getElementTranslation($this
    ->getTypedConfig(), $options);
  return $this->localeConfig
    ->create($this->definition, $data);
}