public function TranslationString::setString

Implements Drupal\locale\StringInterface::setString().

Overrides StringInterface::setString

File

drupal/core/modules/locale/lib/Drupal/locale/TranslationString.php, line 98
Definition of Drupal\locale\TranslationString.

Class

TranslationString
Defines the locale translation string object.

Namespace

Drupal\locale

Code

public function setString($string) {
  $this->translation = $string;
  return $this;
}