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.
In CommentSelection.php there is a @see
tag that says:
@see SelectionEntityTypeNode::entityQueryAlter()
Drupal doesn't define any SelectionEntityTypeNode
class. That comment should be fixed to refer the right class, or be removed.
That comment has been introduced in #1801304: Add Entity reference field, but I cannot understand to which class it is referring, and which class replaces it, if there is any.
Comment | File | Size | Author |
---|---|---|---|
#15 | 2935575-15.patch | 901 bytes | gaurav.kapoor |
#11 | 2935575-11.patch | 856 bytes | gaurav.kapoor |
Comments
Comment #2
apadernoComment #4
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commentedChecked the code below @see tag, didn't find it relevant. I guess it should be removed.
Comment #5
cilefen CreditAttribution: cilefen at Institute for Advanced Study commentedThe @see was added in #1801304: Add Entity reference field.
Comment #6
apadernoGiven the class name (
SelectionEntityTypeNode
), I would take it should be theNodeSelection
class, but that doesn't implemententityQueryAlter()
, and its parent class has an empty method for that. Looking for an entity query class, I don't find one that is specific for the node entity.In short, I don't find any method/function that proves what that comment says. I think it can be removed, as it is just confusing.
Comment #7
amateescu CreditAttribution: amateescu for Pfizer, Inc. commented\Drupal\node\Plugin\EntityReferenceSelection\NodeSelection::buildEntityQuery()
is the correct method reference for that@see
in D8 :)Comment #8
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commentedComment #9
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commentedComment #10
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commentedComment #11
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commentedComment #12
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commentedRemoving patches which are not required.
Comment #13
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedWe need to provide the full namespace of the class, just copy paste it from #7.
Comment #14
cilefen CreditAttribution: cilefen at Institute for Advanced Study commentedComment #15
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commentedDid changes as per #7.
Comment #16
gaurav.kapoor CreditAttribution: gaurav.kapoor at OpenSense Labs for DrupalFit commentedComment #17
amateescu CreditAttribution: amateescu for Pfizer, Inc. commentedLooks good now.
Comment #19
catchCommitted/pushed to 8.6.x and cherry-picked to 8.5.x. Thanks!
Comment #21
catch