By erik frèrejean on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.8.x
Introduced in version:
8.8.0-alpha1
Issue links:
Description:
The number of results returned by \Drupal\Core\Entity\EntityAutocompleteMatcher::getMatches used to be hardcoded to 10. The $selection_settings array can now contain $selection_settings['match_limit'], which can be used to override the number of results returned (when set to 0 no limit is applied).
The two core autocomplete widgets (entity_reference_autocomplete and entity_reference_autocomplete_tags) have been updated to utilise this new limit and expose a new field widget setting where the limit can be set.


| Attachment | Size |
|---|---|
| Screen Shot for setting size limit pm.png | 137.18 KB |
| Screen Shot with values pm.png | 48.83 KB |
Impacts:
Site builders, administrators, editors
Module developers