I created a custom form and I want add a "users" reference field.
I see here I must use the property autocomplete_route_name, but what value must I set?
$form['project']['users'] = array(
'#type' => 'textfield',
'#title' => t('choose users'),
'#autocomplete_route_name' => 'user.autocomplete',
);
With the previous code, I get the following error:
Uncaught PHP Exception Symfony\Component\Routing\Exception\RouteNotFoundException: "Route "user.autocomplete" does not exist." at /var/www/drupal8/core/lib/Drupal/Core/Routing/RouteProvider.php
What is the correct code I should use?