Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
entity_reference.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Jun 2013 at 14:19 UTC
Updated:
29 Jul 2014 at 22:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amateescu commentedI don't see anything wrong with that, let's do it :)
Comment #2
pcambraLet's see what I broke
Comment #4
pcambraComment #6
pcambraLet's see if this goes green, hopefully patch is aligned with the intention of the issue :)
Comment #7
amateescu commented$field and $instance are missing the 'array' data type, and $entity should be just \Drupal\Core\Entity\EntityInterface.
Otherwise we're good here :)
Comment #8
yched commentedThey can still be used as arrays for now, but strictly speaking they are FieldInterface and FieldInstanceInterface objects. There are still old docs that refer to them as arrays here and there, but I'd suggest doc that gets added or moved around refers to the interfaces ?
Comment #9
amateescu commentedYep, you're totally right.
Comment #10
pcambraOk had big re-roll conflict issues so no interdiff on the doc changes :( but here is the patch!
Comment #11
amateescu commentedLooks good to go :)
Comment #12
amateescu commentedNeeds another reroll for #2020405: Correct misspelling of 'referenceable' :(
Comment #13
panchoHere's the reroll. Should still be RTBC, when green.
Comment #14
pcambraRTBC as for #12
Comment #15
yesct commentedThis issue was RTBC and passing tests on July 1, the beginning of API freeze.
Comment #16
alexpottShould we actually be removing the function
entity_reference_get_selection_handler()as well? It was a one point but in #10 it was no longer removed... can't determine why... as this patch does appear to remove all 10 usages from core.Also needs a reroll..
Comment #17
amateescu commentedYes, we should. I guess it was just a victim of the big conflict reroll from #10..
Comment #18
amateescu commentedRerolled and deleted the deprecated function.
Comment #19
amateescu commentedBack to RTBC since the patch is really trivial :)
Comment #20
alexpottI might be missing something... but shouldn't we using
$this->getInstance($options);here?Comment #21
amateescu commentedOf course we should, me--. Got to respect that self-imposed break more :)
Comment #23
amateescu commented#21: 2017851-move_entity_reference_get_selection_handler-21.patch queued for re-testing.
Comment #24
tim.plunkettEntityReferenceAutocomplete is a service, so this can be easily injected
We really need to fix/kill WidgetFactory...
This could be $this->container->get(...
Comment #25
amateescu commentedThanks, Tim!
Comment #26
tim.plunkettCan we get an issue for WidgetFactory to extend or be replaced by ContainerFactory? Thanks!
Comment #27
alexpottCommitted 42ebadc and pushed to 8.x. Thanks!
Created followup #2052751: WidgetFactory is not used anywhere so it should be removed