LocaleTranslation::canTranslateEnglish

protected LocaleTranslation::canTranslateEnglish()

Gets translate english configuration value.

Return value

bool TRUE if english should be translated, FALSE if not.

File

core/modules/locale/src/LocaleTranslation.php, line 128

Class

LocaleTranslation
String translator using the locale module.

Namespace

Drupal\locale

Code

protected function canTranslateEnglish() {
  if (!isset($this->translateEnglish)) {
    $this->translateEnglish = $this->configFactory->get('locale.settings')->get('translate_english');
  }
  return $this->translateEnglish;
}
doc_Drupal
2016-10-29 09:24:11
Comments
Leave a Comment

Please login to continue.