public function String::setValue

Implements TypedDataInterface::setValue().

Overrides TypedData::setValue

1 method overrides String::setValue()
TextProcessed::setValue in drupal/core/modules/field/modules/text/lib/Drupal/text/TextProcessed.php
Implements TypedDataInterface::setValue().

File

drupal/core/lib/Drupal/Core/TypedData/Type/String.php, line 30
Definition of Drupal\Core\TypedData\Type\String.

Class

String
The string data type.

Namespace

Drupal\Core\TypedData\Type

Code

public function setValue($value) {
  $this->value = isset($value) ? (string) $value : $value;
}