public function PrimitiveInterface::setValue in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/PrimitiveInterface.php \Drupal\Core\TypedData\PrimitiveInterface::setValue()
Sets the primitive data value.
Parameters
mixed|null $value: The value to set in the format as documented for the data type or NULL to unset the data value.
File
- core/
lib/ Drupal/ Core/ TypedData/ PrimitiveInterface.php, line 26
Class
- PrimitiveInterface
- Interface for primitive data.
Namespace
Drupal\Core\TypedDataCode
public function setValue($value);