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
avpadernoComment #4
gaurav.kapoor commentedChecked the code below @see tag, didn't find it relevant. I guess it should be removed.
Comment #5
cilefen commentedThe @see was added in #1801304: Add Entity reference field.
Comment #6
avpadernoGiven the class name (
SelectionEntityTypeNode), I would take it should be theNodeSelectionclass, 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 commented\Drupal\node\Plugin\EntityReferenceSelection\NodeSelection::buildEntityQuery()is the correct method reference for that@seein D8 :)Comment #8
gaurav.kapoor commentedComment #9
gaurav.kapoor commentedComment #10
gaurav.kapoor commentedComment #11
gaurav.kapoor commentedComment #12
gaurav.kapoor commentedRemoving patches which are not required.
Comment #13
amateescu commentedWe need to provide the full namespace of the class, just copy paste it from #7.
Comment #14
cilefen commentedComment #15
gaurav.kapoor commentedDid changes as per #7.
Comment #16
gaurav.kapoor commentedComment #17
amateescu commentedLooks good now.
Comment #19
catchCommitted/pushed to 8.6.x and cherry-picked to 8.5.x. Thanks!
Comment #21
catch