Autocomplete Entity ID
Security covered
The Entity Autocomplete ID module enhances Drupal's default entity autocomplete functionality by enabling users to search and match entities based on their unique IDs, in addition to the conventional entity labels. If there is a match by ID, an extra result is prepended and shown first in the result list. Module provides a form element, an entity reference field widget, and allows for easy global enabling across all existing autocomplete fields.
How to use it:
- On the entity form display configuration page, use the 'Autocomplete ID' widget on any entity reference fields.
- Programmatically, you can use the 'entity_id_autocomplete' form render element type.
- Alternatively, you can enable it globally for use in all autocomplete fields across the site. Don't forget to configure permissions if you want to restrict access by roles.
πΊπ¦
This module is maintained by Ukrainian developers.Please consider supporting Ukraine in a fight for their freedom and safety of Europe.
Develop Autocomplete Entity ID using DDEV β
If you haven't already, install DDEV.
git clone [email protected]:project/autocomplete_id.git cd autocomplete_id ddev config --project-type=drupal --docroot=web --php-version=8.4 --corepack-enable --project-name=autocomplete-id ddev add-on get ddev/ddev-drupal-contrib ddev start ddev poser ddev symlink-project ddev drush site:install -y ddev drush pm:install autocomplete_id -y ddev drush config:export -y ddev drush user:login