Sets the data value.
Parameters
mixed $value:
The value to set in the format as documented for the data type or NULL to
unset the data value.
Throws
\Drupal\Core\TypedData\ReadOnlyException
If the data is read-only.
File
- drupal/core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 50
- Definition of Drupal\Core\TypedData\TypedDataInterface.
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedData
Code
public function setValue($value);