You are here

public function StringInterface::setString in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::setString()
  2. 9 core/modules/locale/src/StringInterface.php \Drupal\locale\StringInterface::setString()

Sets the string contained in this object.

Parameters

string $string: String to set as value.

Return value

$this

File

core/modules/locale/src/StringInterface.php, line 62

Class

StringInterface
Defines the locale string interface.

Namespace

Drupal\locale

Code

public function setString($string);