function PrimitiveInterface::setValue

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.