public function TypedDataInterface::setValue

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.

1 method overrides TypedDataInterface::setValue()
TypedData::setValue in drupal/core/lib/Drupal/Core/TypedData/Type/TypedData.php
Implements TypedDataInterface::setValue().

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);