This is used for transferring a native attribute value to a value that the widget,
generated from the information obtained via {@link IAttribute::getFieldDefinition()}
can handle.
public valueToWidget ( mixed $varValue ) : mixed | ||
$varValue | mixed | The value to be transformed. |
return | mixed | The resulting widget compatible value |
/** * Set the default value of the Attribute * * @param mixed $value */ public function setDefaultValue($value) { $value = $this->mmAttribute->valueToWidget($value); $this->set('value', $value); }