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.
As requested by @jibran in #2107243-45: Decouple entity reference selection plugins from field definitions, this is a followup that makes Drupal\Core\Entity\Plugin\EntityReferenceSelection\SelectionBase::buildEntityQuery()
a protected method.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2421849.patch | 3.96 KB | amateescu |
Comments
Comment #1
amateescu CreditAttribution: amateescu commentedComment #2
geertvd CreditAttribution: geertvd commentedLooks good, I don't see any reason not to put this to RTBC
Comment #3
alexpottCommitted under the followup proviso in the beta policy. Committed 03b7423 and pushed to 8.0.x. Thanks!
Comment #5
jibranWhat about
SelectionBase::entityQueryAlter()
we can also make it protected?Comment #6
amateescu CreditAttribution: amateescu commentedA quick search through the code would show that it's used outside the selection classes, in
entity_reference_query_entity_reference_alter()
:)Comment #7
jibranThank you @amateescu.