TranslationString::setString

public TranslationString::setString($string)

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/TranslationString.php, line 93

Class

TranslationString
Defines the locale translation string object.

Namespace

Drupal\locale

Code

1
2
3
4
public function setString($string) {
  $this->translation = $string;
  return $this;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.