I need to set a checkbox which has an unknown field (machine) name in the user account. the checkboxes are in the user account /user/?/edit
but they doesn't appear as fields in people/accounts/fields and are provided by the
DANSE Content Moderation Module.
I need to update them through a twig template with a custom form controller which works fine, but i cannot find the right way to update the field. I've tried:
$checkarticle = $values->get('checkmailarticle'); //--> field from custom form
$user_load = User::load($userID_current);
$user_load->danse_subscriptions_settings_content_node_article_0_update->value = $checkarticle;
but where to find the correct
$user_load->"this field name?"->value
Or is there another way to update the settings?