public function SourceString::getString in Drupal 9
Same name and namespace in other branches
- 8 core/modules/locale/src/SourceString.php \Drupal\locale\SourceString::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/ SourceString.php, line 31
Class
- SourceString
- Defines the locale source string object.
Namespace
Drupal\localeCode
public function getString() {
return isset($this->source) ? $this->source : '';
}