You are here

public function TranslationString::setString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/locale/src/TranslationString.php \Drupal\locale\TranslationString::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/TranslationString.php, line 98
Contains \Drupal\locale\TranslationString.

Class

TranslationString
Defines the locale translation string object.

Namespace

Drupal\locale

Code

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