Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The entity.autocomplete_matcher
service is handled by EntityAutocompleteMatcher class which doesn't implement any interface. Because of that the EntityAutocompleteController's constructor accepts only instances of that class. That causes problems when trying to decorate the entity.autocomplete_matcher
with a class that doesn't extend the original one.
Proposed resolution
Add the EntityAutocompleteMatcherInterface.
Remaining tasks
None.
User interface changes
None.
API changes
EntityAutocompleteMatcherInterface present.
Data model changes
None.
Release notes snippet
EntityAutocompleteMatcherInterface has been added, so the entity.autocomplete_matcher service can be decorated.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3101516-3.patch | 5.61 KB | blazey |
Comments
Comment #2
blazey CreditAttribution: blazey at Amazee Labs commentedComment #3
blazey CreditAttribution: blazey at Amazee Labs commentedComment #4
colorfieldThank you @blazey, looks good
Comment #6
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedLooks like unrelated test failures so moving it RTBC as per comment #4.
Comment #7
alexpottCommitted and pushed 2267926607 to 9.0.x and da4bec840d to 8.9.x. Thanks!
I thought about whether we need a change record for this but I don't think we do.