function TranslationString::setString
Same name in other branches
- 9 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::setString()
- 10 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::setString()
- 11.x core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::setString()
Overrides StringInterface::setString
File
-
core/
modules/ locale/ src/ TranslationString.php, line 93
Class
- TranslationString
- Defines the locale translation string object.
Namespace
Drupal\localeCode
public function setString($string) {
$this->translation = $string;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.