public function TranslationString::getString in Drupal 8
Same name and namespace in other branches
- 9 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::getString()
- 10 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::getString()
Gets plain string contained in this object.
Return value
string The string contained in this object.
Overrides StringInterface::getString
File
- core/
modules/ locale/ src/ TranslationString.php, line 86
Class
- TranslationString
- Defines the locale translation string object.
Namespace
Drupal\localeCode
public function getString() {
return isset($this->translation) ? $this->translation : '';
}