How to work getFieldValue for assets I have been implementing my own PHP plugin code.

In that, I need to get an asset field in user info. If I can get if the asset is set on the field or not, it is enough.

I can get the values of text and radio button fields with $user-&gt;getFieldValue function.
However, it does not work for asset fields.
How should I do for asset?
I have solved it by myself.

$asset = $user-&gt;getFieldValue(FIELDHANDLE)-&gt;one();
$user-&gt;setFieldValues([ 'FIELDHANDLE' =&gt; $asset-&gt;filename ]);