Same name and namespace in other branches
  1. 8.9.x core/lib/Drupal/Core/TypedData/PrimitiveInterface.php \Drupal\Core\TypedData\PrimitiveInterface::setValue()
  2. 9 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\TypedData

Code

public function setValue($value);