Make the autocomplete matcher function into a service

Created on 26 September 2019, about 5 years ago
Updated 2 March 2023, almost 2 years ago

The Autocomplete controller currently uses a private function to get the matches and return the keys and labels. This prevents it from being overridden is a Drupal 8 way. If the code is refactored to make the matcher function into a service (as exists in the Core implementation), and then let Realname override the core Drupal matcher service with its own, it will allow other modules to further override the realname matcher service is a Drupal 8 way.

Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇳🇿New Zealand jlscott

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024