public function SourceString::setString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/locale/src/SourceString.php \Drupal\locale\SourceString::setString()
Sets the string contained in this object.
Parameters
string $string: String to set as value.
Return value
$this
Overrides StringInterface::setString
File
- core/
modules/ locale/ src/ SourceString.php, line 44 - Contains \Drupal\locale\SourceString.
Class
- SourceString
- Defines the locale source string object.
Namespace
Drupal\localeCode
public function setString($string) {
$this->source = $string;
return $this;
}