function PrimitiveInterface::setValue
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/PrimitiveInterface.php \Drupal\Core\TypedData\PrimitiveInterface::setValue()
- 10 core/lib/Drupal/Core/TypedData/PrimitiveInterface.php \Drupal\Core\TypedData\PrimitiveInterface::setValue()
- 11.x 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);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.