Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298611

Hardcoded result size limit in the entity reference autocomplete widget.

$
0
0

Problem/Motivation

The EntityReferenceAutocompleteWidget will always return a maximum of 10 results, which is caused by the call $entity_labels = $handler->getReferenceableEntities($string, $match_operator, 10); in Drupal\Core\Entity\EntityAutocompleteMatcher::getMatches().

Proposed resolution

Make the match size limit configurable as is the case with the operator.

Remaining tasks

None.

User interface changes

New "Number of results" setting on entity reference autocomplete widgets. Defaults to 10.

API changes

N/A

Data model changes

match_limit setting added to entity reference autocomplete/tags field widget config schema.


Viewing all articles
Browse latest Browse all 298611


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>