LinkField::setValue
Set the value of this field in various formats.
Used by , and . As this method is used both for initializing the field after construction, and actually changing its values, it needs a parameter.
Signature
public function setValue(DBField|array
$value,
[array
$record = NULL,
[boolean
$markChanged = true]] )
Parameters
$value
— object
$record
— array- Map of values loaded from the database
$markChanged
— boolean- Indicate wether this field should be marked changed.
Set to FALSE if you are initializing this field after construction, rather
than setting a new value.