Closed (fixed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2018 at 09:18 UTC
Updated:
5 Feb 2018 at 16:19 UTC
Jump to comment: Most recent, Most recent file
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