How do I add an autocomplete field in a class whothat extends FormBase FormBase
?
I created a custom module, in the custom module there iswhich uses a "Form" file (a class whothat extends FormBase)
In the form file,FormBase
. I want to programmatically create programmaticaly a form element like a entity reference field (an autocomplete users list of the site)
How can I do that ? I search inautocompletes the core,username from the user registered in the web..site.but I don't find how do that