function TranslationString::isTranslation
Same name in other branches
- 9 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::isTranslation()
- 10 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::isTranslation()
- 11.x core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::isTranslation()
Overrides StringInterface::isTranslation
1 call to TranslationString::isTranslation()
- TranslationString::__construct in core/
modules/ locale/ src/ TranslationString.php - Constructs a new locale string object.
File
-
core/
modules/ locale/ src/ TranslationString.php, line 79
Class
- TranslationString
- Defines the locale translation string object.
Namespace
Drupal\localeCode
public function isTranslation() {
return !empty($this->lid) && !empty($this->language) && isset($this->translation);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.